Skip to main content
Use "type": "string" for free-form text fields. Then add constraints to control size, format, and allowed values.

Supported keywords

Length constraints

Use this to avoid empty outputs and cap long generations. The length bounds are inclusive.

Pattern constraints

This matches exactly two uppercase letters (for example country codes).

Format constraints

Formats are named patterns that validate well-known string shapes. The following formats are currently supported: