Skip to content

Commit

Permalink
Make sychronous member of ActionAffordance mandatory - closes #405
Browse files Browse the repository at this point in the history
  • Loading branch information
benfrancis authored and lu-zero committed May 7, 2024
1 parent 8767198 commit 55f66b1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
21 changes: 10 additions & 11 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -969,6 +969,7 @@ <h3>Protocol Binding</h3>
"fade": {
"title": "Fade",
"description": "Fade the lamp to a given level",
"synchronous": false,
"input": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -1364,6 +1365,14 @@ <h5><code>invokeaction</code></h5>
</li>
</ol>
</div>
<p>
<span class="rfc2119-assertion"
id="http-basic-profile-protocol-binding-invokeaction-24">
The <code>synchronous</code> member of an
<a href="https://w3c.github.io/wot-thing-description/#actionaffordance"><code>ActionAffordance</code></a>
MUST be set to <code>true</code> or <code>false</code>.
</span>
</p>
<p>
<span class="rfc2119-assertion"
id="http-basic-profile-protocol-binding-invokeaction-7">
Expand All @@ -1384,17 +1393,6 @@ <h5><code>invokeaction</code></h5>
<a href="#async-action-response">Asynchronous Action Response</a>.
</span>
</p>
<p>
<span class="rfc2119-assertion"
id="http-basic-profile-protocol-binding-invokeaction-9">
If the <code>synchronous</code> member of the
<a href="https://w3c.github.io/wot-thing-description/#actionaffordance"><code>ActionAffordance</code></a>
[[wot-thing-description11]] is <code>undefined</code> then the Web
Thing MAY respond with either a
<a href="#sync-action-response">Synchronous Action Response</a> or
<a href="#async-action-response">Asynchronous Action Response</a>.
</span>
</p>
<p><span class="rfc2119-assertion" id="http-basic-profile-protocol-binding-invokeaction-10">
For long-running actions which are not expected to finish executing
within the timeout period of an HTTP request (e.g. 30 to 120
Expand Down Expand Up @@ -1970,6 +1968,7 @@ <h2>Protocol Binding</h2>
"fade": {
"title": "Fade",
"description": "Fade the lamp to a given level",
"synchronous": false,
"input": {
"type": "object",
"properties": {
Expand Down
3 changes: 3 additions & 0 deletions testing/atrisk.css
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@
#http-basic-profile-protocol-binding-invokeaction-23 {
background-color: yellow;
}
#http-basic-profile-protocol-binding-invokeaction-24 {
background-color: yellow;
}
#http-basic-profile-protocol-binding-queryaction-2 {
background-color: yellow;
}
Expand Down

0 comments on commit 55f66b1

Please sign in to comment.