JSON Schema export from any source, in three drafts
Exporting an item to JSON Schema now writes a valid standalone schema from any typed source — a 2020-12 bundle by default, or draft-07 / draft-04, or one file per type. How the JSON Schema is written.
- Real JSON types. Scalars such as
i32ortimestampbecome JSON types with aformat({"type": "integer", "format": "int32"}), and validation rules become keywords. Every document validates against its draft's metaschema. - Every type. All of the item's types are written under
$defs, named after the type. - Drafts. The draft option writes
draft-07ordraft-04, rewriting what the older draft spells differently and reporting what it cannot carry. - One file per type. packaging
per-typedownloads a.zipof<Type>.schema.jsonfiles, with a manifest; id_base gives each file an$idunder your own URI.
