Hoist every $defs entry to the schema root and deduplicate by content.
Walks the tree once, resolves each $ref against the nearest enclosing
$defs scope, and re-homes the result under a single root-level $defs,
replacing every duplicate occurrence with a $ref to one canonical copy.
Hoist every
$defsentry to the schema root and deduplicate by content.Walks the tree once, resolves each
$refagainst the nearest enclosing$defsscope, and re-homes the result under a single root-level$defs, replacing every duplicate occurrence with a$refto one canonical copy.