Result of normaliseSchema. Carries the canonical Draft 2020-12 JSON Schema the walker consumes, the optional original Zod schema (used for validation), and the resolved root document so cross-document $refs can be dereferenced downstream.
$ref
JSON Schema object — the authoritative schema for rendering.
Optional
Original Zod schema, if input was Zod. Used for validation.
Root-level metadata.
The root document for $ref resolution.
Result of normaliseSchema. Carries the canonical Draft 2020-12 JSON Schema the walker consumes, the optional original Zod schema (used for validation), and the resolved root document so cross-document
$refs can be dereferenced downstream.