The JSON Schema organization is requesting feedback from users out there about the stability guarantees it should be enforcing on the next release of the specification.
If you feel you can contribute, please read https://github.com/orgs/json-schema-org/discussions/295 and share your thoughts.
The current options are:
- The specifications that have been published to date provide no stability guarantees, but we will be adding explicit guarantees with the next publication.
- Apply the stability guarantees starting with the most recent publication (draft 2020-12) so that the next publication contains no breaking changes.
I have a system I built that compiles TS types to JSON schema, which then validates data coming into my endpoints, this way I am typesafe at compile time (Typescript API) but if someone hits my REST endpoint w/o using my library, I still get runtime goodness.
The number of different ways that JSON schema can be programmatically generated and therefore expressed is a bit high, different tools generate very different JSON Schemas.
Also the error messages JSON schema gives back are kind of trash, then again the JSON Schema on one of our endpoints is over 200KB in size.