3 ms·
Well, they produce JSON though. I understand that there is much more context related to the user interface but you can extend JSON Schema to be able to tie more
by buremba 4y ago
Well, they produce JSON though. I understand that there is much more context related to the user interface but you can extend JSON Schema to be able to tie more information to it. It's an incredibly flexible & collaborative way to define the schemas. The backend people are also familiar with it and can validate the data & collaborate with frontend people over a JSON Schema probably much easier compared to a frontend libraries DSL.
For example; React has a library to generate forms via JSON Schema and you can use uiSchema feature for the use-case that you mentioned:
https://react-jsonschema-form.readthedocs.io/en/latest/api-reference/uiSchema/ https://react-jsonschema-form.readthedocs.io/en/latest/api-r...
- bpicolo 4y agoBut then I'm running a bespoke DSL for interface display in a validation lib. It's not obvious that's the better direction eh?