-
-
Notifications
You must be signed in to change notification settings - Fork 221
test: A $dynamicRef without anchor in fragment behaves identical to $ref #651
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test: A $dynamicRef without anchor in fragment behaves identical to $ref #651
Conversation
My implementation errors on this:
Please use a unique identifier for each new resource. |
@karenetheridge corrected |
Do we not already have a test for this? (Not at my computer right now) I seem to recall having something. |
Just checking the current suite, we have
These all declare |
my impl https://github.com/santhosh-tekuri/boon passes all existing test cases, but it does not pass this test case. below is the logic in my implementation validator.rs#L567-L574:
in step 1, it resolves to since my impl does not pass this test, I wanted to confirm whether my understanding of spec is correct or not |
That was my first reaction as well, but I checked and this does appear to be unique. This is the only test that uses a JSON Pointer in a dynamic reference. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works in my implementation.
Should we refocus the test, then? If we're checking its functionality using a pointer, it should be focused on that, not that |
The functionality when using a pointer is that |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jdesrosiers okay.
Passes on mine, too.
from https://datatracker.ietf.org/doc/html/draft-bhutton-json-schema-01#section-8.2.3.2:
please ensure that my understanding is correct and the test case is valid