-
-
Notifications
You must be signed in to change notification settings - Fork 215
Add $id values into remote schemas #410
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
Conversation
This way, index.js is not required to understand what is going on, and e.g. a static *.schema.json file analyzer can pick up those schemas and link them together.
I do not feel this PR is required -- and it should not be applied in totality, as I describe below.
It isn't necessary for implementations to do this. The mere act of loading a document via a I think we should keep some tests in the test suite where a remote ref does not have an |
@karenetheridge that's not the point of this PR. Currently, there is nothing in the tests (or remotes) dir that links
How exactly can that loading be performed without some way of binding those json files to Currently, the testsuite supports only external manual binding (like |
I believe the intent was to spell this out in a README. If it's not there in master, there should be a PR for it (I'm not in a place where I can look right now). That is -- wording something like "the files in remotes/ are intended to be made available to the implementation with a base URI of "http://localhost:1234/". We need language like that anyway, because it is not reasonable to ask an implementation using the test suite to pre-parse all the files in remotes/ to determine what URIs to make those files available under. I remain firm that an |
Ah. I see the concern now. I'll think what can be done about that... |
I didn't review this PR (yet?), but the So literally ignore it if it's causing issues. |
(Initially though just glancing, yeah, not sure I see why it matters whether these schemas have or don't have IDs declared -- I think you're possibly yourself getting confused by that |
@Julian Tests expect files from the That is the issue, not The problem is that test suite expects refs to Adding |
Obviously that should be documented yes :) that I think @karenetheridge filed as #364 I don't think adding |
Going to close this I think due to the above, but if you think that's incorrect or want to discuss further obviously we can. I think #364 should hit how to tell users of the test suite that they need to load these though. |
I believe that that data should be present in the files themselves, not in an external
index.js
file.Implementers should not be expected to even look there.
This way,
index.js
is not required to understand what is going on, and e.g. a static schema file analyzer can pick up those schemas and link them together.A further improvement would be to specify
$schema
in all the tests, but that's out of scope of this PR.