"type": "object" for keyed JSON structures.
Core object keywords
| Keyword | What it does |
|---|---|
properties | Declares named fields and their schemas |
patternProperties | Applies schemas to keys matching a regex |
required | Lists fields that must be present |
additionalProperties | Controls unknown keys |
minProperties | Minimum number of properties |
maxProperties | Maximum number of properties |
propertyNames | Schema that every property name must satisfy |
unevaluatedProperties is not supported right now.
If you have a use case that requires it, reach out to us.Example
additionalProperties: false when you want strict, predictable output shape.
patternProperties
Use regex-based key validation for dynamic maps:
JSON Schema
Pydantic and Zod examples are omitted here because there is no direct keyword mapping for
patternProperties.title, description, default, and examples
Use annotation keywords to document intent and provide generation hints:
These annotation keywords are ignored by structured generation and do not constrain the output. However, they can influence generation if they are included in the prompt.