Walk a normalised JSON Schema and produce a WalkedField tree
that drives every rendering pipeline in schema-components (React,
HTML, streaming HTML).
Reads standard Draft 2020-12 keywords only — no Zod internals. Handles
$ref resolution, allOf merging, nullable detection from
anyOf, and discriminated-union detection from oneOf + const.
Pass rootDocument so cross-document refs resolve correctly and
diagnostics to receive per-keyword warnings.
Walk a normalised JSON Schema and produce a WalkedField tree that drives every rendering pipeline in schema-components (React, HTML, streaming HTML).
Reads standard Draft 2020-12 keywords only — no Zod internals. Handles
$refresolution,allOfmerging,nullabledetection fromanyOf, and discriminated-union detection fromoneOf+const. PassrootDocumentso cross-document refs resolve correctly anddiagnosticsto receive per-keyword warnings.