-
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
Maybe support jsonschema #19
Comments
Just found your project while researching for potential connections between pydantic and panel/params. We use jsonschemas to be more language independent, e. g. to also use javascript bases application like https://github.com/json-editor/json-editor, so jsonschema support would be an interesting option. |
Hi, thanks for the interest. |
Thanks for your response. We built pydantic classes from jsonschema and our code on top of this. If we built panel classes/widgets directly from jsonschema I guess we would have a separate disconnected data model. So if we have jsonschema => pydantic already in place you would recommend going directly from pydantic to panels using this package as it is? The mentioned sync provided by this package would allow us to write the same data processing code regardless of whether data comes from a static source, API or is manipulated via panels by the user. |
JSONSchema can easily be converted to pydantic models which can then be edited. Would require a bit of complexity as we would have to generate the models in memory using e.g. fsspec, import them dynamically and them use them for conversion to and from json.
Probably will implement on if requested explicitly. If you would be interested in such a thing, please add a comment.
The text was updated successfully, but these errors were encountered: