Describe the shape of your data once. Automatically generate validators and types for any language.
properties:
name:
type: string
isAdmin:
type: boolean
favoriteNumbers:
elements:
type: number
user.schema.yaml
Stop writing ad-hoc, repetitive code to check the correctness of payloads. JSON Schema Language lets you describe the shape and type of your data, and generates validators and types for you.
JSON is great because it's obvious. JSON Schema Language is the same; most engineers understand it without having to read any docs.
JSON Schema Language is a language-independent way of describing JSON data. Use same schema on web and mobile, or across servers written in different languages.
Whether it's custom tooling for your company or adding your own validators, JSON Schema Language is easy to build upon or tailor to your needs.
Write a schema and instance (input) on the left, or choose from one of the presets. Errors will appear on the right.