You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am currently working on a dynamic solution to store the React JSON Schema on the Backend and then load it to the Frontent page.
I have the following endpoints:
POST /forms
GET /forms/:id
During the POST operation I want to validate the React JSON schema before saving it using JSON Schema Validator. Unfortunately my Backend doesn't use TS/JS/Node.js and I can't use any existing validators from react-jsonschema-form repository.
I've tried to validate the React JSON Schema against JSON Schema Draft-7 and other versions however it fails because for some cases there are unknown keywords (please take a look at the attached json-schema-example.json). For instance the multiSelect keyword, it is unknown for format="segment_select" and is not part of any JSON Schema notation including the Draft-7.
The ideal solution I am looking for is to customize the schema control using formats however I need to get all formats and their semantics that are not part of JSON Schema standard.
The worst case solution is to have a vocabulary of all the unknown keywords.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi everyone,
I am currently working on a dynamic solution to store the React JSON Schema on the Backend and then load it to the Frontent page.
I have the following endpoints:
During the POST operation I want to validate the React JSON schema before saving it using JSON Schema Validator. Unfortunately my Backend doesn't use TS/JS/Node.js and I can't use any existing validators from react-jsonschema-form repository.
I've tried to validate the React JSON Schema against JSON Schema Draft-7 and other versions however it fails because for some cases there are unknown keywords (please take a look at the attached json-schema-example.json). For instance the
multiSelect
keyword, it is unknown forformat="segment_select"
and is not part of any JSON Schema notation including the Draft-7.The ideal solution I am looking for is to customize the schema control using formats however I need to get all formats and their semantics that are not part of JSON Schema standard.
The worst case solution is to have a vocabulary of all the unknown keywords.
Thank you in advance.
Beta Was this translation helpful? Give feedback.
All reactions