How to write a good JSON Schema
Types, required, clear descriptions, additionalProperties, and when to split a big object into reusable pieces.
Short, practical guides for developers who work with JSON Schema: how to write one well, how it compares with Zod and Pydantic, and the mistakes almost every schema makes at first.
Types, required, clear descriptions, additionalProperties, and when to split a big object into reusable pieces.
Three ways to validate data, what each one is for, and how to choose — with an honest comparison table.
Six traps every schema falls into — a missing required, format trusted too far, broken $refs — each with a before and after.
Every example in these guides is a real, valid schema — checked with Ajv 2020. Try them yourself in the Validator or the Quality checker.
SchemaBox is free for everyone. Your tools are offered by Denis, and your donations pay for the servers, the domain names and the work behind these tools. Every coffee helps — thank you!
☕ Support on Ko-fi