-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
code requires update... #12
Comments
Came here for the same question. Any plans on updating the package? Is there some kind of roadmap on things to do? |
To be more explicit, this is one of the errors that are triggered on execution.
|
A list of fixes I had to do to get me to a point where it seems it might execute. Deprecated components:
It is assumed that the instance variable "schema" in SchemaForm class will always be a dictionary, even in the example of the author, it also happens to be a list. Here: class SchemaForm(dbc.Card):
"""
Form generated by JSON Schema.
"""
def __init__(self, schema, key, container=None, parent_form=None):
super().__init__([])
self.schema = schema
self.owner_class = schema.get('tag', '')
self.parent_form = parent_form
self.skiped_forms = [] And it fails with the schema example, here: (...)
"subform_children_array_example": {
"type": "array",
"description": "subforms children array w/ size defined by min/max items and referenced by definitions",
"minItems": 2,
"maxItems": 2,
"items": [{"$ref": "#/definitions/ChildrenExample"}]
}
}
}
}
}
},
"definitions": {
"ChildrenExample": {
"type": "object",
"required": ["string"],
"properties": {
"string": {
"type": "string",
"description": "children string field"
},
"description": {
"type": "number",
"description": "children numeric field"
}
}
}
}
} For now, I won't use subforms/refs in that manner. Finally, it seems you can't pass By doing all those changes you get the UI to render. |
Hello,
would love to use your package and examples, however it is outdated, with newer bootstrap and dash versions.
would it possible for you to update your package
The text was updated successfully, but these errors were encountered: