Prompts and context

Schema

A description of how data should be organized, including its fields, types and rules.

Where you’ll use it.

An appointment record might require a date, a clinic name and an available-or-full status.

What to keep separate.

The schema is the rule for the shape; structured output is a response that follows it. A schema can check required fields without verifying the underlying appointment.

Connect the ideas.

Read the source.

JSON Schema — Creating your first schema ↗

Fields, types and validation rules. No programming setup is needed to understand the example.

Reviewed October 24, 2026. Examples are fictional. Product-specific features and data terms vary.