Skip to content

dynamicAnchor behaviour #362

Closed Answered by jdesrosiers
SorinGFS asked this question in Q&A
Mar 28, 2023 · 6 comments · 69 replies
Discussion options

You must be logged in to vote

a regular $ref is it allowed to access a $dynamicAnchor ?

Technically, yes, but there's is no good reason for a schema author to do so. I expect that to change in a future release so that you can only reference a dynamic anchor with a dynamic reference.

a $dynamicRef is it allowed to access an $anchor ?

No

can $dynamicRef access external resources ?

Yes. In fact, there's no reason to use a dynamic reference if it's not expected to resolve to external resource in at least some cases.

what is the scope of $dynamicRef ? E.g., if $dynamicRef is created in $id: "http://domain/first/second" can it access a $dynamicAnchor created in $id: "http://domain/first" ?

As you are evaluating a sc…

Replies: 6 comments 69 replies

Comment options

You must be logged in to vote
17 replies
@SorinGFS
Comment options

@SorinGFS
Comment options

@SorinGFS
Comment options

@jdesrosiers
Comment options

@SorinGFS
Comment options

Comment options

You must be logged in to vote
3 replies
@SorinGFS
Comment options

@jdesrosiers
Comment options

@SorinGFS
Comment options

Comment options

You must be logged in to vote
7 replies
@jdesrosiers
Comment options

@SorinGFS
Comment options

@SorinGFS
Comment options

@jdesrosiers
Comment options

@SorinGFS
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by SorinGFS
Comment options

You must be logged in to vote
32 replies
@jdesrosiers
Comment options

@SorinGFS
Comment options

@jdesrosiers
Comment options

@SorinGFS
Comment options

@SorinGFS
Comment options

Comment options

You must be logged in to vote
10 replies
@jdesrosiers
Comment options

@SorinGFS
Comment options

@jdesrosiers
Comment options

@SorinGFS
Comment options

@SorinGFS
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants