Ensure that the type of value-objects is a string
authorMarkus Lanthaler <mark_lanthaler@gmx.net>
Thu, 14 Mar 2013 15:22:23 +0100
changeset 1445 7dedc56c2039
parent 1444 3ad414f94c0c
child 1446 f5e3cde5e02d
Ensure that the type of value-objects is a string

This addresses #218.
--- a/spec/latest/json-ld-api/index.html	Thu Mar 14 15:15:41 2013 +0100
+++ b/spec/latest/json-ld-api/index.html	Thu Mar 14 15:22:23 2013 +0100
@@ -1720,9 +1720,13 @@
               <tref>null</tref>, then set <i>result</i> to <tref>null</tref>.</li>
             <li>Otherwise, if the value of <i>result</i>'s <code>@value</code> member
               is not a <tref>string</tref> and <i>result</i> contains the key
-              <code>@language</code>, a
+              <code>@language</code>, an
               <code class="error"><a href="#idl-def-JsonLdErrorCode.invalid-language-tagged-value">invalid language-tagged value</a></code>
               error has been detected (only <tref title="string">strings</tref> can be language-tagged).</li>
+            <li>Otherwise, if the <i>result</i> has a <code>@type</code> member
+              and it's value is not a <tref>string</tref>, an
+              <code class="error"><a href="#idl-def-JsonLdErrorCode.invalid-typed-value">invalid typed value</a></code>
+              error has been detected.</li>
         <li>Otherwise, if <i>result</i> contains the key <code>@type</code>
@@ -3945,7 +3949,8 @@
         <dt>invalid language-tagged value</dt>
         <dd>A <tref>number</tref>, <tref>true</tref>, or <tref>false</tref> with an
           associated language tag was detected.</dd>
-        <dt>invalid set or list object</dt>
+        <dt>invalid typed value</dt>
+        <dd>A <tref>typed value</tref> with an invalid type was detected.</dt>
         <dd>A <tref>set object</tref> or <tref>list object</tref> with
           disallowed members has been detected.</dd>
         <dt>invalid language map value</dt>