What is a JSON Schema?
A JSON Schema is a JSON document that describes the shape of other JSON documents. It declares what type each value should be, which properties are required, how arrays and nested objects are structured, and which string formats or value constraints apply. Draft-07 is one of the most widely supported dialects, understood by validators in virtually every language, which is why this generator targets it.
Schemas are built from a small vocabulary of keywords. type sets the JSON type (object, array, string, number, integer, boolean, or null); properties maps each object key to its own schema; required lists the keys that must be present; items describes array elements; format annotates strings like email or date-time; and enum, const, minimum, and pattern pin values down further. Because a schema is itself JSON, it lives in your repository and diffs cleanly.
Once you have a schema you can do more than validate. JSON Schema underpins OpenAPI request and response bodies, drives form generation, feeds code generators that emit types, and serves as living documentation of an API contract. Generating one from a real payload is usually the fastest way to bootstrap all of that.