by andix · 2y ago · 0 comments
The thought I do get: JSON Schema primarily describes one main document (object/thing). And additionally defines named types (#/definitions/Student). But it's totally fine to just use the definitions for code generation.
The reference semantics of JSON Schema is quite powerful, a little bit like XML with XSD and all the different imports and addons.
The moment you have types referencing other types in a way that can become recursive in ANY way, the whole thing seems to explode.