JSON Schema
A structured description of the shape of JSON data and the rules that apply to it, such as required fields, types, and allowed values.
On this page
Source content checked . English translation published 2026-10-27.
In business automation
A schema helps applications agree on a data contract and identify input that does not conform to it. It is also useful for language model output, but it does not check whether every fact is correct.
Examples
These examples illustrate a possible workflow. Adapt the connections and rules to your own systems.
Business process example
A service receives a classification result with category and summary. The schema allows only agreed categories and requires a text summary; output that does not conform is stopped before being written to the CRM.
Relevant tools
- Pydantic AI
- You can work with data structures based on defined types; business checks supplement structural validation.
What to check
- Do not confuse schema compliance with business correctness. Even an invented ID can be a valid string.