You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: index.html
+18-14Lines changed: 18 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -487,25 +487,29 @@ <h2>The <dfn>WoT API object</dfn></h2>
487
487
<sectiondata-dfn-for="InteractionInput">
488
488
<h2>The <dfn>InteractionInput</dfn> type</h2>
489
489
<preclass="idl">
490
-
typedef any DataSchema;
491
-
typedef (ReadableStream or DataSchema) InteractionInput;
490
+
typedef any DataSchemaValue;
491
+
typedef (ReadableStream or DataSchemaValue) InteractionInput;
492
492
</pre>
493
493
<p>
494
494
Belongs to the <a>WoT Consumer</a> conformance class and represents the
495
495
<a>WoT Interaction</a> data provided by application scripts to the UA.
496
-
It is either a {{ReadableStream}} object, or an
497
-
<ahref="https://www.ecma-international.org/ecma-262/11.0/index.html#sec-ecmascript-data-types-and-values">ECMAScript value</a> (i.e. null, boolean, number, string, array, or object).
496
+
</p>
497
+
<p>
498
+
<dfn>DataSchemaValue</dfn> is an
499
+
<ahref="https://www.ecma-international.org/ecma-262/11.0/index.html#sec-ecmascript-data-types-and-values">ECMAScript value</a> that is accepted for <a>DataSchema</a> defined in [[WoT-TD]]
500
+
(i.e. null, boolean, number, string, array, or object).
498
501
</p>
499
502
<p>
500
503
{{ReadableStream}} is meant to be used for <a>WoT Interactions</a> that
501
-
don't have a {{DataSchema}} in the <a>Thing Description</a>, only a
504
+
don't have a <a>DataSchema</a> in the <a>Thing Description</a>, only a
502
505
{{Form}}'s `contentType` that can be represented by a stream.
503
506
</p>
504
507
<p>
505
-
Any <ahref="https://www.ecma-international.org/ecma-262/11.0/index.html#sec-ecmascript-data-types-and-values">ECMAScript value</a> may
506
-
be used for <a>WoT Interactions</a> that have a {{DataSchema}} defined in
507
-
the <a>Thing Description</a>, or which can be mapped by implementations
508
-
to the {{Form}}'s `contentType` defined in the <a>Thing Description</a>.
508
+
In practice, any
509
+
<ahref="https://www.ecma-international.org/ecma-262/11.0/index.html#sec-ecmascript-data-types-and-values">ECMAScript value</a> may be used for <a>WoT Interactions</a> that have a
510
+
<a>DataSchema</a> defined in the <a>Thing Description</a>,
511
+
or which can be mapped by implementations to the {{Form}}'s `contentType`
512
+
defined in the <a>Thing Description</a>.
509
513
</p>
510
514
<p>
511
515
The algorithms in this document specify how exactly input data is used in
0 commit comments