> Do you use JSON Schema? No, but I don’t do much backend stuff, anymore. I’m totally anal about Quality, so I want to do things like jsonSchema. I used to deliberately publish APIs in both JSON and XML, so that I could use XML Schema to validate the data, but JSON, to actually use it. XML Schema is a huge PItA. I don’t like auto-generated Schema (see “anal,” above), so I tend to hand-tune (or write code to dynamical…
Yes. In the past I used to use Schematron; it's quite fun and extremely straightforward, although it's better described as a set of rules / tests than a tool to describe the structure of a document.
https://en.wikipedia.org/wiki/Schematron
A Schematron equivalent in JS would be cool. Maybe it already exists?