-
-
Notifications
You must be signed in to change notification settings - Fork 266
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
Interaction of "$ref" with "definitions" #505
Comments
Totally agree it belongs in the core. |
Just to elaborate on what I said elsewhere -- if the stance we want to take is the one I've been going with, it's pretty important to point out but not to make definitions special, because the same behavior should apply to (Not sure ^ contradicts anything in this issue, but pointing it out since I don't think I've mentioned that case on any of the previous issues) |
@Julian I'm glad you posted because while that's not quite how I was thinking of it, it's not incompatible either. It really gets down to the question of what |
IMHO, as far as
Current Now what makes things a little difficult in terms of modelling is the fact that a library of schemas will have many possible As a result I'd like to suggest the following for consideration:
Pros:
Cons:
|
@semanino Please file a new issue outlining your problem statement and resolution. Please do not bring new requests into existing issues. |
Given that we've decided on delegation as the So while we need to wait until we've nailed down that behavior in a PR, if it goes that way then we won't need to make any special case out of |
As discussed in json-schema-org/JSON-Schema-Test-Suite#197 and earlier in json-schema-org/JSON-Schema-Test-Suite#113 and json-schema-org/JSON-Schema-Test-Suite#129,
definitions
is not like validation keywords and there is a fairly compelling argument that it should not be ignored.This fits in with the refinements to the theoretical model and processing order that we started to introduce in draft-07: classifying keywords as working with applicability, assertions, and/or annotations.
definitions
is in its own category, existing solely as a way to organize re-usable schemas as$ref
targets.Arguably,
definitions
also belongs in core with$ref
. It has nothing to do with validation or even annotations (which live in the validation spec, at least for now).The text was updated successfully, but these errors were encountered: