Skip to content
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

JSON editor JSONSchema validation #4012

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

jm-amt
Copy link

@jm-amt jm-amt commented Nov 19, 2024

Added JSONSchema validation to json_editor.

New method json_editor.add_validation(schema) will enable validation on the json_editor component.


Feature request: #4003

@falkoschindler
Copy link
Contributor

Thanks for the pull request, @jm-amt!
Can you give an example how to use it? It tried ui.json_editor({'content': {'json': json}}, add_validation=schema) with json and schema from https://json-schema.org/learn/getting-started-step-by-step, but there doesn't seem to be any validation happening.

@falkoschindler falkoschindler added the enhancement New feature or request label Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants