-
Notifications
You must be signed in to change notification settings - Fork 4
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
Don't override external specifications. See #20. #26
Conversation
I don't think this is the right approach. See #20 (comment) |
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.
Can this work?
schema to change within the same Schema Resource. | ||
A dialect defining the `$schema` keyword: | ||
|
||
* MUST do it according to the content of this section; |
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 ensure that $schema is defined consistently btw various dialects
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.
I don't think this is quite the right perspective. $schema
is not a keyword that dialects can define. It's a media type construct. So, we probably need to say something like, $schema
is a reserved property that belongs to the media type and dialects MUST NOT define keywords that conflict with that name.
* SHOULD define where the `$schema` keyword is allowed and/or | ||
recognized in a schema; | ||
* SHOULD not allow the | ||
schema to change within the same Schema Resource. |
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.
"Schema resource" should probably be referenced .
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.
Agreed. Schema Reference and Schema Document need to be defined.
Deprecated, move this to json-schema |
This PR
References external spec instead of overriding them
Note
If
$schema
is defined into JSONSchema, probably we should just reference it.