@@ -487,8 +487,8 @@ <h2>The <dfn>WoT API object</dfn></h2>
487
487
< section data-dfn-for ="InteractionInput ">
488
488
< h2 > The < dfn > InteractionInput</ dfn > type</ h2 >
489
489
< pre class ="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
@@ -498,12 +498,12 @@ <h2>The <dfn>InteractionInput</dfn> type</h2>
498
498
</ p >
499
499
< p >
500
500
{{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
502
502
{{Form}}'s `contentType` that can be represented by a stream.
503
503
</ p >
504
504
< p >
505
505
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
507
507
the < a > Thing Description</ a > , or which can be mapped by implementations
508
508
to the {{Form}}'s `contentType` defined in the < a > Thing Description</ a > .
509
509
</ p >
@@ -525,7 +525,7 @@ <h2>The <dfn>InteractionOutput</dfn> interface</h2>
525
525
This interface exposes a convenience function which should work in
526
526
the vast majority of IoT use cases: the
527
527
< 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
529
529
otherwise fail early, leaving the underlying stream undisturbed so
530
530
that application scripts could attempt reading the stream themselves, or
531
531
handling the data as {{ArrayBuffer}}.
@@ -557,7 +557,7 @@ <h2>The <dfn>InteractionOutput</dfn> interface</h2>
557
557
</ p >
558
558
< p >
559
559
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`.
561
561
</ p >
562
562
< p >
563
563
The < dfn > [[\value]]</ dfn > internal slot represents the parsed value of
@@ -1792,7 +1792,7 @@ <h3>The <dfn>PropertyReadHandler</dfn> callback</h3>
1792
1792
< a > Property</ a > is received and defines what to do with such requests.
1793
1793
It returns a {{Promise}} and resolves with an {{ReadableStream}} object or an
1794
1794
< 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
1796
1796
error if the property is not found or the value cannot be retrieved.
1797
1797
</ p >
1798
1798
</ section >
@@ -1887,7 +1887,7 @@ <h3>The <dfn>PropertyReadHandler</dfn> callback</h3>
1887
1887
< li >
1888
1888
Return |value|.
1889
1889
< 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 >
1891
1891
or it SHOULD be an {{ReadableStream}} object created by the
1892
1892
|handler|.
1893
1893
</ p >
@@ -2168,7 +2168,7 @@ <h3>The <dfn>PropertyWriteHandler</dfn> callback</h3>
2168
2168
< p class ="note ">
2169
2169
The value is provided by implementations as an {{InteractionOutput}} object
2170
2170
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.
2172
2172
</ p >
2173
2173
</ section >
2174
2174
0 commit comments