Skip to content

Commit 90af40f

Browse files
committed
Use DataSchemaValue to differentiate from TD DataSchema
Signed-off-by: Zoltan Kis <[email protected]>
1 parent 7dd8175 commit 90af40f

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

index.html

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -487,8 +487,8 @@ <h2>The <dfn>WoT API object</dfn></h2>
487487
<section data-dfn-for="InteractionInput">
488488
<h2>The <dfn>InteractionInput</dfn> type</h2>
489489
<pre class="idl">
490-
typedef any DataSchema;
491-
typedef (ReadableStream or DataSchema) InteractionInput;
490+
typedef any DataSchemaValue;
491+
typedef (ReadableStream or DataSchemaValue) InteractionInput;
492492
</pre>
493493
<p>
494494
Belongs to the <a>WoT Consumer</a> conformance class and represents the
@@ -498,12 +498,12 @@ <h2>The <dfn>InteractionInput</dfn> type</h2>
498498
</p>
499499
<p>
500500
{{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
501+
don't have a <a>DataSchema</a> in the <a>Thing Description</a>, only a
502502
{{Form}}'s `contentType` that can be represented by a stream.
503503
</p>
504504
<p>
505505
Any <a href="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
506+
be used for <a>WoT Interactions</a> that have a <a>DataSchema</a> defined in
507507
the <a>Thing Description</a>, or which can be mapped by implementations
508508
to the {{Form}}'s `contentType` defined in the <a>Thing Description</a>.
509509
</p>
@@ -525,7 +525,7 @@ <h2>The <dfn>InteractionOutput</dfn> interface</h2>
525525
This interface exposes a convenience function which should work in
526526
the vast majority of IoT use cases: the
527527
<a href="#the-value-function">value()</a> function. Its implementation
528-
will inspect the data, parse it if adheres to a {{DataSchema}}, or
528+
will inspect the data, parse it if adheres to a <a>DataSchema</a>, or
529529
otherwise fail early, leaving the underlying stream undisturbed so
530530
that application scripts could attempt reading the stream themselves, or
531531
handling the data as {{ArrayBuffer}}.
@@ -557,7 +557,7 @@ <h2>The <dfn>InteractionOutput</dfn> interface</h2>
557557
</p>
558558
<p>
559559
The <dfn>schema</dfn> attribute represents the <a>DataSchema</a>
560-
of the payload as a {{JSON}} object, initially `null`.
560+
(defined in [[WoT-TD]]) of the payload as a {{JSON}} object, initially `null`.
561561
</p>
562562
<p>
563563
The <dfn>[[\value]]</dfn> internal slot represents the parsed value of
@@ -1792,7 +1792,7 @@ <h3>The <dfn>PropertyReadHandler</dfn> callback</h3>
17921792
<a>Property</a> is received and defines what to do with such requests.
17931793
It returns a {{Promise}} and resolves with an {{ReadableStream}} object or an
17941794
<a href="https://www.ecma-international.org/ecma-262/11.0/index.html#sec-ecmascript-data-types-and-values">
1795-
ECMAScript value</a> conforming to {{DataSchema}}, or rejects with an
1795+
ECMAScript value</a> conforming to <a>DataSchema</a>, or rejects with an
17961796
error if the property is not found or the value cannot be retrieved.
17971797
</p>
17981798
</section>
@@ -1887,7 +1887,7 @@ <h3>The <dfn>PropertyReadHandler</dfn> callback</h3>
18871887
<li>
18881888
Return |value|.
18891889
<p class="note">
1890-
The |value| returned here SHOULD either conform to {{DataSchema}}
1890+
The |value| returned here SHOULD either conform to <a>DataSchema</a>
18911891
or it SHOULD be an {{ReadableStream}} object created by the
18921892
|handler|.
18931893
</p>
@@ -2168,7 +2168,7 @@ <h3>The <dfn>PropertyWriteHandler</dfn> callback</h3>
21682168
<p class="note">
21692169
The value is provided by implementations as an {{InteractionOutput}} object
21702170
in order to be able to represent values that are not described by a
2171-
{{DataSchema}}, such as streams.
2171+
<a>DataSchema</a>, such as streams.
21722172
</p>
21732173
</section>
21742174

0 commit comments

Comments
 (0)