w3c / json-ld-framing

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

Improve example 18 for @omitDefault #46

Closed gkellogg closed 5 years ago

gkellogg commented 5 years ago

The example works, but does not really show why you would ever use both @default and @omitDefault.

iherman commented 5 years ago

This issue was discussed in a meeting.

azaroth42 commented 5 years ago

Example in #41 seems very clear to me!

dlongley commented 5 years ago

@gkellogg,

The example works, but does not really show why you would ever use both @default and @omitDefault.

The issue isn't with specifying those two flags together, but rather that there is a "default @default" of null that you may want to selectively disable. This is particularly true when you need to specify other flags (like @embed as in the example). I agree that it would be silly to use both @omitDefault and @default on the same subsection of a frame.