Input JSON to generate a JSON Schema (draft 2020-12)!
input
→
result
Generate JSON Schema from JSON!
Input JSON to generate a JSON Schema (draft 2020-12)!
Use Cases
- Create API contracts
- Paste an example API response to get a schema with types, required keys and nested structure for documentation or request/response validation.
- Inference rules
- Only keys present in every item become required, null mixes become ["string", "null"], and date, email, URI and UUID strings get a format.