Schema Generation Settings
Settings for SchemaGeneration. Values fall back through three levels: document → SDK → built-in default. Writes target the document only when set on a document's settings, otherwise the SDK globally when set on SdkSettings.
Functions
Link copied to clipboard
Enable discriminated unions: variant object types expressed as anyOf with a shared constant discriminator field per variant.
Link copied to clipboard
Enable enum constraints for fields with a small closed set of known values.
Link copied to clipboard
Enable nullable fields in the generated schema.
Link copied to clipboard
Enable regex pattern constraints on string fields.
Link copied to clipboard
Enable string format annotations (for example, date-time or uuid), restricted to the formats the target dialect documents as supported.
Link copied to clipboard
Target dialect preset applied on top of the individual knobs.
Link copied to clipboard
Also generate cross-field constraint rules encoding the logical relationships of the document type (for example, a subtotal equaling the sum of line item amounts), as standard JsonLogic expressions (jsonlogic.com).
Link copied to clipboard
When greater than zero, bounds the number of items of arrays in the generated schema.
Link copied to clipboard
Maximum total number of properties across the whole generated schema, counting nested objects and union variants.
Link copied to clipboard
Maximum object nesting depth of the generated schema.
Link copied to clipboard
How many times to retry the vision model when its output is invalid — unparseable JSON or a draft that fails meta-schema validation.
Link copied to clipboard
Enable discriminated unions: variant object types expressed as anyOf with a shared constant discriminator field per variant.
Link copied to clipboard
Enable enum constraints for fields with a small closed set of known values.
Link copied to clipboard
Enable nullable fields in the generated schema.
Link copied to clipboard
Enable regex pattern constraints on string fields.
Link copied to clipboard
Enable string format annotations (for example, date-time or uuid), restricted to the formats the target dialect documents as supported.
Link copied to clipboard
Target dialect preset applied on top of the individual knobs.
Link copied to clipboard
Also generate cross-field constraint rules encoding the logical relationships of the document type (for example, a subtotal equaling the sum of line item amounts), as standard JsonLogic expressions (jsonlogic.com).
Link copied to clipboard
When greater than zero, bounds the number of items of arrays in the generated schema.
Link copied to clipboard
Maximum total number of properties across the whole generated schema, counting nested objects and union variants.
Link copied to clipboard
Maximum object nesting depth of the generated schema.
Link copied to clipboard
How many times to retry the vision model when its output is invalid — unparseable JSON or a draft that fails meta-schema validation.