Skip to content
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

requireAll does not require @type and should #40

Closed
azaroth42 opened this issue Feb 27, 2019 · 3 comments · Fixed by #50
Closed

requireAll does not require @type and should #40

azaroth42 opened this issue Feb 27, 2019 · 3 comments · Fixed by #50

Comments

@azaroth42
Copy link
Contributor

From discussion on the mailing list, it was noted that the requireAll flag does not actually require all, it requires everything other than @id and @type.

The proposal arising is to make it actually require all of the asserted features, including @type and @id.

@dlongley
Copy link
Contributor

We might need to tweak the proposal a bit -- because right now I think requireAll would require @type if present (because when @type is present it is always required). The problem is that it doesn't require any of the other properties when @type is present. The proposal is to make it such that when @type is present, all of the other properties are also required.

@dlongley
Copy link
Contributor

Or, more generally, when requireAll is true, all specific properties must be present or there is no match. There is no special treatment of @type or @id.

@iherman
Copy link
Member

iherman commented Mar 2, 2019

This issue was discussed in a meeting.

  • RESOLVED: If requireAll is present, then all keys in the frame are used to determine a match, including @type and @id
View the transcript 3. requireAll does not require @type and should
Rob Sanderson: #40
Gregg Kellogg: we added require all flag that does not work the way people expect. People expected it to literally mean ‘require all’ not a combination of if/or
Ivan Herman: can we close the issue?
Gregg Kellogg: not close but we agree to move to approve it
Proposed resolution: IF requireAll is present, then all keys in the frame are used to determine a match, including @type and @id (Rob Sanderson)
Gregg Kellogg: seems logical to be if require all is present then all keys in the frame are used to determine that
Gregg Kellogg: +1
Dave Longley: +1
Rob Sanderson: +1
Benjamin Young: +1
Jeff Mixter: +1
Ivan Herman: +1
Tim Cole: +1
Harold Solbrig: +1
Simon Steyskal: +1
David Newbury: +1
David I. Lehn: +1
Resolution #2: If requireAll is present, then all keys in the frame are used to determine a match, including @type and @id

gkellogg added a commit that referenced this issue Apr 20, 2019
@gkellogg gkellogg self-assigned this Apr 20, 2019
@gkellogg gkellogg moved this from Editorial Work to Editorial work complete in JSON-LD Management DEPRECATED Apr 20, 2019
gkellogg added a commit that referenced this issue Apr 23, 2019
gkellogg added a commit that referenced this issue Apr 24, 2019
@gkellogg gkellogg removed this from Editorial work complete in JSON-LD Management DEPRECATED Apr 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants