Surface root-level metadata from the JSON Schema into the rootMeta
shape consumed by the walker. Pulls readOnly, writeOnly,
description, title, deprecated, examples, and default
directly from the schema root.
examples is forwarded only when present as an array (per JSON Schema
Draft 2020-12 — Draft 04's example singular is normalised upstream).
default is forwarded for any value the schema declares (any JSON
value, including null and false); the presence check uses in
so a literal false or null default is preserved.
examples and default ride on the [key: string]: unknown index
signature of SchemaMeta. They are not declared as named fields
on SchemaMeta because that type lives in types.ts and is shared
with the walker; the index signature is the agreed extension point.
Surface root-level metadata from the JSON Schema into the
rootMetashape consumed by the walker. PullsreadOnly,writeOnly,description,title,deprecated,examples, anddefaultdirectly from the schema root.examplesis forwarded only when present as an array (per JSON Schema Draft 2020-12 — Draft 04'sexamplesingular is normalised upstream).defaultis forwarded for any value the schema declares (any JSON value, includingnullandfalse); the presence check usesinso a literalfalseornulldefault is preserved.examplesanddefaultride on the[key: string]: unknownindex signature of SchemaMeta. They are not declared as named fields onSchemaMetabecause that type lives intypes.tsand is shared with the walker; the index signature is the agreed extension point.