Make the options API parameter nullable
authorMarkus Lanthaler <mark_lanthaler@gmx.net>
Thu, 16 Aug 2012 16:47:59 +0200
changeset 810 72b67f09cacf
parent 809 d639624b9bd8
child 811 207f61cbd25c
Make the options API parameter nullable

This makes it easier to implement it as optional in some languages as only one interface with a default value of null has to be implemented.
spec/latest/json-ld-api/index.html
spec/latest/json-ld-framing/index.html
--- a/spec/latest/json-ld-api/index.html	Thu Aug 16 15:00:53 2012 +0200
+++ b/spec/latest/json-ld-api/index.html	Thu Aug 16 16:47:59 2012 +0200
@@ -761,7 +761,7 @@
           <dt>JsonLdCallback callback</dt>
           <dd>A callback that is called when processing is complete on
             the given <code>input</code>.</dd>
-          <dt>optional JsonLdOptions options</dt>
+          <dt>optional JsonLdOptions? options</dt>
           <dd>A set of options that MAY affect the expansion algorithm such as, e.g., the
             input document's base <tref>IRI</tref>.</dd>
         </dl>
@@ -801,7 +801,7 @@
           <dt>JsonLdCallback callback</dt>
           <dd>A callback that is called when processing is complete on
             the given <code>input</code>.</dd>
-          <dt>optional JsonLdOptions options</dt>
+          <dt>optional JsonLdOptions? options</dt>
           <dd>A set of options that MAY affect the expansion algorithm such as, e.g., the
             input document's base <tref>IRI</tref>. This also includes <code>optimize</code>,
             which if set will cause processor-specific optimization.</dd>
@@ -837,7 +837,7 @@
           <dt>JsonLdCallback callback</dt>
           <dd>A callback that is called when processing is complete on
             the given <code>input</code>.</dd>
-          <dt>optional JsonLdOptions options</dt>
+          <dt>optional JsonLdOptions? options</dt>
           <dd>A set of options that will affect the algorithm. This includes <code>notType</code>,
             which if set to <tref>true</tref> causes the resulting document to use <code>rdf:type</code>
             as a property, instead of <code>@type</code>.</dd>
@@ -857,7 +857,7 @@
           <dd>A callback that is called when a <ldtref>Quad</ldtref> is created from processing
             the given <code>input</code>.
           </dd>
-          <dt>optional JsonLdOptions options</dt>
+          <dt>optional JsonLdOptions? options</dt>
           <dd>A set of options that MAY affect the conversion to RDF such as, e.g.,
             the input document's base <tref>IRI</tref>.</dd>
         </dl>
--- a/spec/latest/json-ld-framing/index.html	Thu Aug 16 15:00:53 2012 +0200
+++ b/spec/latest/json-ld-framing/index.html	Thu Aug 16 16:47:59 2012 +0200
@@ -470,7 +470,7 @@
           <dt>JsonLdCallback callback</dt>
           <dd>A callback that is called when processing is complete on
             the given <code>input</code>.</dd>
-          <dt>optional JsonLdOptions options</dt>
+          <dt>optional JsonLdOptions? options</dt>
           <dd>A set of options that MAY affect the framing algorithm such as, e.g., the
             input document's base <tref>IRI</tref>.</dd>
         </dl>
@@ -501,7 +501,7 @@
           <dt>JsonLdCallback callback</dt>
           <dd>A callback that is called when processing is complete on
             the given <code>input</code>.</dd>
-          <dt>optional JsonLdOptions options</dt>
+          <dt>optional JsonLdOptions? options</dt>
           <dd>A set of options that MAY affect the expansion algorithm such as, e.g., the
             input document's base <tref>IRI</tref>.</dd>
         </dl>