Skip to main content
Code Guide
AI Engineering Structured Outputs

Nullable fields

Schema pattern (`{"type": ["string", "null"]}`) that forces a model to explicitly emit `null` for absent values instead of hallucinating a plausible default. Required for reliable structured extraction across diverse document types.