-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
setSchema does not work #1422
Labels
Comments
@qqsea thanks for reporting. Can you share a minimal example demonstrating the issue? Like in https://jsbin.com or https://codesandbox.io or so? |
Just based on the example from \examples\07_json_schema_validation.html. setTimeout(function(){
var s = JSON.parse(JSON.stringify(schema))
s.properties.gender.enum.push('test');
editor.setSchema(s, {"job": JSON.parse(JSON.stringify(job))});
editor.refresh();
}, 1000); |
Thanks, I'm able to reproduce this issue 👍 |
This is fixed now in |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I want to dynamic update schema, and use setSchema api which seems not work.
Here is the example: I dynamic insert another enum string 'test' into gender field. the error message show the newly added value 'test', but there is no such 'test' option within drop down.
Thank you very much!
The text was updated successfully, but these errors were encountered: