3 ms·
JsonSchema is pretty good -- it is not as widely used as XSD, but it has libraries for most languages. And of course JSON is the easiest thing to parse in scri
by theamk 7y ago
JsonSchema is pretty good -- it is not as widely used as XSD, but it has libraries for most languages.
And of course JSON is the easiest thing to parse in scripting languages, like Python and Ruby -- the entire API is one line, and then you have a native structure you can work with.
- spiralx 7y ago> JsonSchema is pretty good -- it is not as widely used as XSD, but it has libraries for most languages. It's okay now that the newest revisions support more realistic use cases, but ironically I find it impossible to write as JSON... I write them as YAML which my validator supports natively :) It's still not as nice as RELAX-NG's compact schema format though IMO :) https://relaxng.org/compact-tutorial-20030326.html https://relaxng.org/compact-tutorial-20030326.html And the LXML library for Python was a pleasure to use compared to any other similar library I've used.