provide json-schema definitions
KiaraGrouwstra opened this issue · 0 comments
JSON Schema, in their own words, is a vocabulary that allows you to annotate and validate JSON documents.
Schema.org's schemas appear largely expressed in the JSON format. It would be nice if JSON Schema definitions were provided as well.
Things you can do with this include:
- generating documentation
- validation
- ways to generate random data conforming to the schema for testing purposes
- generating UIs to view or edit data conforming to the schema (e.g.
react-schema-form
)
Now, while much of this may have already been provided, the point here is to separate concerns: presently, validation for each of Schema.org's schemas would for example need to be implemented for any given programming language.
The advantage of going through something like JSON Schema is that any language implementing validators for that would no longer require any work specific to Schema.org's individual schemas.
The best part there is that any change to a schema would only need to be made in one place, such that any validators would automatically be able to reflect such changes.