PrimitiveJsonSchema
type PrimitiveJsonSchema = Record<string, never> | { enum?: readonly string[]; format?: string; maxLength?: number; minLength?: number; pattern?: string; type: "string" } | { maximum?: number; minimum?: number; type: "integer" } | { maximum?: number; minimum?: number; type: "number" } | { type: "boolean" } | { items: PrimitiveJsonSchema; type: "array" }JSON Schema fragment describing the constraints of a single primitive.
Each primitive carries one of these on its jsonSchema property so the
compiled serializer and toJsonSchema exporter can introspect it
without re-deriving the shape.
Learn: Primitives and builders