Closed davebaol closed 4 years ago
Also, after updating peer dependencies to jsoneditor ^8.6.8
public setSchema(schema: any) {
this.editor.setSchema(schema);
}
should become
public setSchema(schema: any, schemaRefs: any) {
this.editor.setSchema(schema, schemaRefs);
}
@davebaol You can get access to onValidationError via "brackets property access"
this.editorOptions["onValidationError"] = (errors: object[ ]) : void => { YOUR_CODE_HERE }
added this in the latest.. thanks
Is your feature request related to a problem? Please describe. Peer dependency from jsoneditor is outdated and both options
schemaRefs
andonValidationError
are not supported byJsonEditorOptions
Describe the solution you'd like
schemaRefs
andonValidationError
Describe alternatives you've considered I could extend
JsonEditorOptions
with missing options and pass that instance to the component. Looks like it works, but I'm not sure about possible drawbacks. Also it sounds like a hack.