Skip to content

Commit 5b7b6c8

Browse files
committed
improve editor note in Validating ExposedThingInit + add class=algorithm
1 parent a3147c1 commit 5b7b6c8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ <h3>Expand an ExposedThingInit</h3>
515515
To <dfn>expand an ExposedThingInit</dfn> given |init:ExposedThingInit| and obtain a valid |td:ThingDescription| as
516516
a result,
517517
run the following steps:
518-
<ol>
518+
<ol class="algorithm">
519519
<li>Run <a>validate an ExposedThingInit</a> on |init|. If that fails,
520520
[= exception/throw =] {{SyntaxError}} and abort these steps.</li>
521521
<li>Initialize and empty object called |td|</li>
@@ -570,7 +570,7 @@ <h3>Expand an ExposedThingInit</h3>
570570
<section>
571571
<h3>Validating an ExposedThingInit</h3>
572572
To <dfn>validate an ExposedThingInit</dfn> given |init:ExposedThingInit|, run the following steps:
573-
<ol>
573+
<ol class="algorithm">
574574
<li>
575575
Parse <a href="https://www.w3.org/TR/2020/WD-wot-thing-description11-20201124/#json-schema-for-validation">TD JSON
576576
Schema</a>
@@ -585,8 +585,8 @@ <h3>Validating an ExposedThingInit</h3>
585585
<li>if |key| |value| is a <code>string</code> then if |value| is equal to one of the elements in |optional| remove |key| from |exposedThingInitSchema|</li>
586586
</ol>
587587
</li>
588-
<li>Return the result of <a>validating</a> |init| with |exposedThingInitSchema|
589-
<p class="ednote"><dfn>Validating</dfn> steps are still under discussion.
588+
<li>Return the result of <a>validating an object with JSON Schema</a> given |init| and |exposedThingInitSchema|.
589+
<p class="ednote">The<dfn>validating an object with JSON Schema</dfn> steps are still under discussion.
590590
Currently this specification reference to the validation process of JSONSchema. Please
591591
follow this <a href="https://json-schema.org/draft/2019-09/json-schema-validation.html">document</a>
592592
when validating |init| with |exposedThingInitSchema|. Notice that the working group is evaluating an alternative formal approach.

0 commit comments

Comments
 (0)