jsonSchema

Constrains output to JSON documents valid against the JSON Schema schema (JSON text).

Supported: type (incl. type arrays), properties / required (declared order, optional properties may be omitted), additionalProperties on property-less objects, items / prefixItems / minItems / maxItems, minLength / maxLength, enum, const, anyOf / oneOf, object allOf, and local $refs into $defs / definitions (recursion allowed). Objects with properties never produce undeclared keys. Numeric bounds and format are not enforced.

Throws

if schema is not valid JSON or uses an unsupported keyword that changes the accepted language (e.g. pattern, remote $ref).