Skip to content

Commit e5dea49

Browse files
committed
Disallow list of lists
Added a note to the syntax specification that list of lists are not allowed in this version of JSON-LD and the according exceptions to the API specification. This closes #52.
1 parent d7c9cde commit e5dea49

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

spec/latest/json-ld-api/index.html

+27
Original file line numberDiff line numberDiff line change
@@ -498,6 +498,12 @@ <h3>JsonLdProcessor</h3>
498498
<dd>There was a problem encountered loading a remote context.</dd>
499499
</dl>
500500

501+
<dl class="exception" title="ProcessingError">
502+
<dt>LIST_OF_LISTS_DETECTED</dt>
503+
<dd>A list of lists was detected. This is not supported in this
504+
version of JSON-LD.</dd>
505+
</dl>
506+
501507
</dd>
502508

503509
<dt>object compact()</dt>
@@ -537,6 +543,9 @@ <h3>JsonLdProcessor</h3>
537543
<dt>CONFLICTING_DATATYPES</dt>
538544
<dd>The target datatype specified in the coercion rule and the
539545
datatype for the typed literal do not match.</dd>
546+
<dt>LIST_OF_LISTS_DETECTED</dt>
547+
<dd>A list of lists was detected. This is not supported in this
548+
version of JSON-LD.</dd>
540549
</dl>
541550

542551
</dd>
@@ -568,6 +577,12 @@ <h3>JsonLdProcessor</h3>
568577
requested, MUST result in this exception.</dd>
569578
</dl>
570579

580+
<dl class="exception" title="ProcessingError">
581+
<dt>LIST_OF_LISTS_DETECTED</dt>
582+
<dd>A list of lists was detected. This is not supported in this
583+
version of JSON-LD.</dd>
584+
</dl>
585+
571586
</dd>
572587

573588
<dt>DOMString normalize()</dt>
@@ -598,6 +613,12 @@ <h3>JsonLdProcessor</h3>
598613
<dd>There was a problem encountered loading a remote context.</dd>
599614
</dl>
600615

616+
<dl class="exception" title="ProcessingError">
617+
<dt>LIST_OF_LISTS_DETECTED</dt>
618+
<dd>A list of lists was detected. This is not supported in this
619+
version of JSON-LD.</dd>
620+
</dl>
621+
601622
</dd>
602623

603624
<dt>void triples()</dt>
@@ -626,6 +647,12 @@ <h3>JsonLdProcessor</h3>
626647
<dd>There was a problem encountered loading a remote context.</dd>
627648
</dl>
628649

650+
<dl class="exception" title="ProcessingError">
651+
<dt>LIST_OF_LISTS_DETECTED</dt>
652+
<dd>A list of lists was detected. This is not supported in this
653+
version of JSON-LD.</dd>
654+
</dl>
655+
629656
</dd>
630657

631658
</dl>

spec/latest/json-ld-syntax/index.html

+1
Original file line numberDiff line numberDiff line change
@@ -1270,6 +1270,7 @@ <h2>Lists</h2>
12701270
The value of this key, if present, MUST be <code>true</code>.
12711271
This indicates that array values of keys coerced as <code>@list</code> are to be serialized
12721272
as a <a href="#lists">List</a>.</p>
1273+
<p class="note">List of lists are not allowed in this version of JSON-LD. If a list of lists is detected, a JSON-LD processor will throw an exception.</p>
12731274
</section>
12741275

12751276
</section>

0 commit comments

Comments
 (0)