-
Notifications
You must be signed in to change notification settings - Fork 34
Add tests to check for keyword redefinition allowing @protected
.
#158
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
49e6ec1
to
3a748f4
Compare
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.
Looking good, although pr32 came as a surprise...
"@type": {"@container": "@set", "@protected": true} | ||
}, { | ||
"@version": 1.1, | ||
"@type": {"@protected": true} |
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.
Why is it considered as an attempt to override @type
?
Is it because it implies the opposite of "@container": "@set"
?
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.
Yes,
Because it would change the container association with @type
. But, this might not be important, because it wouldn’t change the interpretation when expanding, but could create an alternate representation when compacting.
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.
+1 to @gkellogg -- and better not to have subtle surprises like that.
"@type": {"@container": "@set", "@protected": true} | ||
}, { | ||
"@version": 1.1, | ||
"@type": {"@protected": true} |
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.
+1 to @gkellogg -- and better not to have subtle surprises like that.
For w3c/json-ld-syntax#246.
Preview | Diff