w3c / json-ld-framing

JSON-LD 1.1 Framing Specification
https://w3c.github.io/json-ld-framing/
Other
25 stars 20 forks source link

requireAll does not require @type and should #40

Closed azaroth42 closed 5 years ago

azaroth42 commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

This issue was discussed in a meeting.