Skip to content

fix: resolve $dynamicRef to $dynamicAnchor in $defs#2573

Open
jasoniangreen wants to merge 5 commits intomasterfrom
fix/dynamicref-defs-resolution
Open

fix: resolve $dynamicRef to $dynamicAnchor in $defs#2573
jasoniangreen wants to merge 5 commits intomasterfrom
fix/dynamicref-defs-resolution

Conversation

@jasoniangreen
Copy link
Collaborator

Just testing

$dynamicRef failed to find $dynamicAnchor when it was defined in non-root locations like $defs because schemas in $defs are only compiled when referenced by $ref. This fix looks up the anchor schema in localRefs during $dynamicRef compilation and compiles it if found.

jasoniangreen and others added 5 commits January 11, 2026 11:50
$dynamicRef failed to find $dynamicAnchor when it was defined in non-root
locations like $defs because schemas in $defs are only compiled when
referenced by $ref. This fix looks up the anchor schema in localRefs
during $dynamicRef compilation and compiles it if found.

Co-Authored-By: Claude <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant