Interface LowerZodOptions

Options for lowerZodToJsonSchema.

interface LowerZodOptions {
    sizeConstraints?: boolean;
}

Properties

Properties

sizeConstraints?: boolean

Emit the schema's size checks as JSON Schema keywords: minLength / maxLength on strings, minItems / maxItems on arrays, minimum / maximum (and the exclusive forms) on numbers. Default false: the default output is unchanged for every caller that hands the schema to a provider's structured-output mode.