forked from w3c/wot-thing-description
-
Notifications
You must be signed in to change notification settings - Fork 0
/
extra-asserts.html
485 lines (485 loc) · 19.8 KB
/
extra-asserts.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
<html>
<head>
<title>Extra Assertions</title>
</head>
<body>
<h1>Extra Assertions</h1>
<p>These are a collection of additional assertions used for testing,
but which are (currently) not included in the specification.
These are candidates for being put in the specification
and are given here only to stage them in order to facilitate timely
generation of the implementation report.
In the final report this
list should probably be empty.
</p>
<ul>
<!-- The following have been moved to "Behavior" section of spec, but are left here
to serve as a template for any new assertions.
<li><span class="rfc2119-assertion" id="client-data-schema">
A WoT Thing acting as a client when interacting with another Thing MUST generate data payloads
according to the data schemas given in the target Thing's WoT Thing Description.
</span></li>
<li><span class="rfc2119-assertion" id="client-uri-template">
A WoT Thing acting as a client when interacting with another Thing MUST generate URIs
according to the URI templates, base URLs, and form href parameters
given in the target Thing's WoT Thing Description.
</span></li>
-->
<li><span class="rfc2119-assertion" id="td-action-names_idempotent">
The vocabulary term
<code>idempotent</code>
MUST be serialized as a JSON name within an Action object.
</span></li>
<li><span class="rfc2119-assertion" id="td-action-names_forms">
The vocabulary term
<code>forms</code>
MUST be serialized as a JSON name within an Action object.
</span></li>
<li><span class="rfc2119-assertion" id="td-action-names_descriptions">
The vocabulary term
<code>descriptions</code>
MUST be serialized as a JSON name within an Action object.
</span></li>
<li><span class="rfc2119-assertion" id="td-action-names_description">
The vocabulary term
<code>description</code>
MUST be serialized as a JSON name within an Action object.
</span></li>
<!--
<li><span class="rfc2119-assertion" id="td-action-arrays_forms">
The type of the member <code>forms</code> MUST be serialized as a JSON array.
</span></li>
-->
<li><span class="rfc2119-assertion" id="td-arrays_scopes">
The type of the member <code>scopes</code> MUST be a JSON array.
</span></li>
<li><span class="rfc2119-assertion" id="td-arrays_links">
The type of the member <code>links</code> MUST be a JSON array.
</span></li>
<li><span class="rfc2119-assertion" id="td-arrays_forms">
The type of the member <code>forms</code> MUST be a JSON array.
</span></li>
<li><span class="rfc2119-assertion" id="td-actions_uniqueness">
Actions collected in the JSON-object based actions member MUST have unique JSON names.
</span></li>
<li><span class="rfc2119-assertion" id="td-actions_existence">
Actions offered by a Thing MUST be collected in the JSON-object based actions member.
</span></li>
<li><span class="rfc2119-assertion" id="td-action-objects_output">
The type of the members output MUST be serialized as a JSON object.
</span></li>
<li><span class="rfc2119-assertion" id="td-action-objects_input">
The type of the members input MUST be serialized as a JSON object.
</span></li>
<li><span class="rfc2119-assertion" id="td-action-names_uriVariables">
The vocabulary term
<code>uriVariables</code>
MUST be serialized as a JSON name within an Action object.
</span></li>
<li><span class="rfc2119-assertion" id="td-action-names_titles">
The vocabulary term
<code>titles</code>
MUST be serialized as a JSON name within an Action object.
</span></li>
<li><span class="rfc2119-assertion" id="td-action-names_title">
The vocabulary term
<code>title</code>
MUST be serialized as a JSON name within an Action object.
</span></li>
<li><span class="rfc2119-assertion" id="td-action-names_safe">
The vocabulary term
<code>safe</code>
MUST be serialized as a JSON name within an Action object.
</span></li>
<li><span class="rfc2119-assertion" id="td-action-names_output">
The vocabulary term
<code>output</code>
MUST be serialized as a JSON name within an Action object.
</span></li>
<li><span class="rfc2119-assertion" id="td-arrays_security">
The value of the member
<code>security</code>
MUST be serialized as a JSON array.
</span></li>
<li><span class="rfc2119-assertion" id="td-data-schema-arrays_enum">
The value of the member
<code>enum</code>
MUST be serialized as a JSON array with a DataSchema object.
</span></li>
<li><span class="rfc2119-assertion" id="td-data-schema-arrays_oneOf">
The value of the member
<code>oneOf</code>
MUST be serialized as a JSON array with a DataSchema object.
</span></li>
<li><span class="rfc2119-assertion" id="td-data-schema-arrays_required">
The value of the member
<code>required</code>
MUST be serialized as a JSON array with a DataSchema object.
</span></li>
<li><span class="rfc2119-assertion" id="td-data-schema-objects_items">
The value of the member
<code>items</code>
MUST be serialized as a JSON object with a DataSchema object.
</span></li>
<li><span class="rfc2119-assertion" id="td-data-schema-objects_properties">
The value of the member
<code>properties</code>
MUST be serialized as a JSON object with a DataSchema object.
</span></li>
<li><span class="rfc2119-assertion" id="td-data-schema_const">
The
<code>const</code>
vocabulary term as defined in the class DataSchema MUST be serialized as a JSON name.
</span></li>
<li><span class="rfc2119-assertion" id="td-data-schema_description">
The
<code>description</code>
vocabulary term as defined in the class DataSchema MUST be serialized as a JSON name.
</span></li>
<li><span class="rfc2119-assertion" id="td-data-schema_descriptions">
The
<code>descriptions</code>
vocabulary term as defined in the class DataSchema MUST be serialized as a JSON name.
</span></li>
<li><span class="rfc2119-assertion" id="td-data-schema_enum">
The
<code>enum</code>
vocabulary term as defined in the class DataSchema MUST be serialized as a JSON name.
</span></li>
<li><span class="rfc2119-assertion" id="td-data-schema_items">
The
<code>items</code>
vocabulary term as defined in the class DataSchema MUST be serialized as a JSON name.
</span></li>
<li><span class="rfc2119-assertion" id="td-data-schema_maxItems">
The
<code>maxItems</code>
vocabulary term as defined in the class DataSchema MUST be serialized as a JSON name.
</span></li>
<li><span class="rfc2119-assertion" id="td-data-schema_maximum-NumberSchema">
The
<code>maximum</code>
vocabulary term as defined in the class DataSchema for numbers MUST be serialized as a JSON name.
</span></li>
<li><span class="rfc2119-assertion" id="td-data-schema_maximum-IntegerSchema">
The
<code>maximum</code>
vocabulary term as defined in the class DataSchema for integers MUST be serialized as a JSON name.
</span></li>
<li><span class="rfc2119-assertion" id="td-data-schema_minItems">
The
<code>minItems</code>
vocabulary term as defined in the class DataSchema MUST be serialized as a JSON name.
</span></li>
<li><span class="rfc2119-assertion" id="td-data-schema_minimum-NumberSchema">
The
<code>minimum</code>
vocabulary term as defined in the class DataSchema for numbers MUST be serialized as a JSON name.
</span></li>
<li><span class="rfc2119-assertion" id="td-data-schema_minimum-IntegerSchema">
The
<code>minimum</code>
vocabulary term as defined in the class DataSchema for integers MUST be serialized as a JSON name.
</span></li>
<li><span class="rfc2119-assertion" id="td-data-schema_oneOf">
The
<code>oneOf</code>
vocabulary term as defined in the class DataSchema for integers MUST be serialized as a JSON name.
</span></li>
<li><span class="rfc2119-assertion" id="td-data-schema_properties">
The
<code>properties</code>
vocabulary term as defined in the class DataSchema for integers MUST be serialized as a JSON name.
</span></li>
<li><span class="rfc2119-assertion" id="td-data-schema_readOnly">
The
<code>readOnly</code>
vocabulary term as defined in the class DataSchema for integers MUST be serialized as a JSON name.
</span></li>
<li><span class="rfc2119-assertion" id="td-data-schema_required">
The
<code>required</code>
vocabulary term as defined in the class DataSchema for integers MUST be serialized as a JSON name.
</span></li>
<li><span class="rfc2119-assertion" id="td-data-schema_title">
The
<code>title</code>
vocabulary term as defined in the class DataSchema for integers MUST be serialized as a JSON name.
</span></li>
<li><span class="rfc2119-assertion" id="td-data-schema_titles">
The
<code>titles</code>
vocabulary term as defined in the class DataSchema for integers MUST be serialized as a JSON name.
</span></li>
<li><span class="rfc2119-assertion" id="td-data-schema_type">
The
<code>type</code>
vocabulary term as defined in the class DataSchema for integers MUST be serialized as a JSON name.
</span></li>
<li><span class="rfc2119-assertion" id="td-data-schema_unit">
The
<code>unit</code>
vocabulary term as defined in the class DataSchema for integers MUST be serialized as a JSON name.
</span></li>
<li><span class="rfc2119-assertion" id="td-data-schema_writeOnly">
The
<code>writeOnly</code>
vocabulary term as defined in the class DataSchema for integers MUST be serialized as a JSON name.
</span></li>
<!--
<li><span class="rfc2119-assertion" id="td-event-arrays_forms">
The type of the member forms MUST be serialized as a JSON array.
</span></li>
-->
<li><span class="rfc2119-assertion" id="td-event-names_cancellation">
The vocabulary term
<code>cancellation</code>
MUST be serialized as a JSON name within an Event object.
</span></li>
<li><span class="rfc2119-assertion" id="td-event-names_data">
The vocabulary term
<code>data</code>
MUST be serialized as a JSON name within an Event object.
</span></li>
<li><span class="rfc2119-assertion" id="td-event-names_description">
The vocabulary term
<code>description</code>
MUST be serialized as a JSON name within an Event object.
</span></li>
<li><span class="rfc2119-assertion" id="td-event-names_descriptions">
The vocabulary term
<code>descriptions</code>
MUST be serialized as a JSON name within an Event object.
</span></li>
<li><span class="rfc2119-assertion" id="td-event-names_forms">
The vocabulary term
<code>forms</code>
MUST be serialized as a JSON name within an Event object.
</span></li>
<li><span class="rfc2119-assertion" id="td-event-names_subscription">
The vocabulary term
<code>subscription</code>
MUST be serialized as a JSON name within an Event object.
</span></li>
<li><span class="rfc2119-assertion" id="td-event-names_title">
The vocabulary term
<code>title</code>
MUST be serialized as a JSON name within an Event object.
</span></li>
<li><span class="rfc2119-assertion" id="td-event-names_titles">
The vocabulary term
<code>titles</code>
MUST be serialized as a JSON name within an Event object.
</span></li>
<li><span class="rfc2119-assertion" id="td-event-names_uriVariables">
The vocabulary term
<code>uriVariables</code>
MUST be serialized as a JSON name within an Event object.
</span></li>
<li><span class="rfc2119-assertion" id="td-event-objects_cancellation">
The type of the members cancellation MUST be serialized as a JSON object.
</span></li>
<li><span class="rfc2119-assertion" id="td-event-objects_data">
The type of the members data MUST be serialized as a JSON object.
</span></li>
<li><span class="rfc2119-assertion" id="td-event-objects_subscription">
The type of the members subscription MUST be serialized as a JSON object.
</span></li>
<li><span class="rfc2119-assertion" id="td-events_existence">
Events offered by a Thing MUST be collected in the JSON-object based events member.
</span></li>
<li><span class="rfc2119-assertion" id="td-events_uniqueness">
Events collected in the JSON-object based events member MUST have unique JSON names.
</span></li>
<li><span class="rfc2119-assertion" id="td-jsonld-keywords_at-context">
Thing Description instances MAY contain the JSON-LD keyword <code>@context</code>.
</span></li>
<li><span class="rfc2119-assertion" id="td-jsonld-keywords_at-type">
Thing Description instances MAY contain the JSON-LD keyword <code>@type</code>.
</span></li>
<li><span class="rfc2119-assertion" id="td-multi-languages_descriptions">
Whenever the vocabulary terms <code>descriptions</code> can be used it MUST be serialized as JSON Object.
The member names of the JSON Object MUST be the language tags as defined in
[[BCP47]] (e.g., "en", "de", "ja", "zh-Hans", "zh-Hant").
The value of each member MUST be serialized as JSON string.
</span></li>
<li><span class="rfc2119-assertion" id="td-multi-languages_titles">
Whenever the vocabulary terms <code>titles</code> can be used it MUST be serialized as JSON Object.
The member names of the JSON Object MUST be the language tags as defined in
[[BCP47]] (e.g., "en", "de", "ja", "zh-Hans", "zh-Hant").
The value of each member MUST be serialized as JSON string.
</span></li>
<li><span class="rfc2119-assertion" id="td-objects_securityDefinitions">
The type of the members securityDefinitions MUST be serialized as a JSON object.
</span></li>
<li><span class="rfc2119-assertion" id="td-objects_version">
The type of the members version MUST be serialized as a JSON object.
</span></li>
<li><span class="rfc2119-assertion" id="td-properties_existence">
Properties offered by a Thing MUST be collected in the JSON-object based properties member.
</span></li>
<li><span class="rfc2119-assertion" id="td-properties_uniqueness">
Properties collected in the JSON-object based properties member MUST have unique JSON names.
</span></li>
<!--
<li><span class="rfc2119-assertion" id="td-property-arrays_forms">
The type of the member forms MUST be serialized as a JSON array.
</span></li>
-->
<li><span class="rfc2119-assertion" id="td-property-names_const">
The vocabulary term
<code>const</code>
MUST be serialized as a JSON name within a Property object.
</span></li>
<li><span class="rfc2119-assertion" id="td-property-names_description">
The vocabulary term
<code>description</code>
MUST be serialized as a JSON name within a Property object.
</span></li>
<li><span class="rfc2119-assertion" id="td-property-names_descriptions">
The vocabulary term
<code>descriptions</code>
MUST be serialized as a JSON name within a Property object.
</span></li>
<li><span class="rfc2119-assertion" id="td-property-names_enum">
The vocabulary term
<code>enum</code>
MUST be serialized as a JSON name within a Property object.
</span></li>
<li><span class="rfc2119-assertion" id="td-property-names_forms">
The vocabulary term
<code>forms</code>
MUST be serialized as a JSON name within a Property object.
</span></li>
<li><span class="rfc2119-assertion" id="td-property-names_items">
The vocabulary term
<code>items</code>
MUST be serialized as a JSON name within a Property object.
</span></li>
<li><span class="rfc2119-assertion" id="td-property-names_maxItems">
The vocabulary term
<code>maxItems</code>
MUST be serialized as a JSON name within a Property object.
</span></li>
<li><span class="rfc2119-assertion" id="td-property-names_maximum">
The vocabulary term
<code>maximum</code>
MUST be serialized as a JSON name within a Property object.
</span></li>
<li><span class="rfc2119-assertion" id="td-property-names_minItems">
The vocabulary term
<code>minItems</code>
MUST be serialized as a JSON name within a Property object.
</span></li>
<li><span class="rfc2119-assertion" id="td-property-names_minimum">
The vocabulary term
<code>minimum</code>
MUST be serialized as a JSON name within a Property object.
</span></li>
<li><span class="rfc2119-assertion" id="td-property-names_observable">
The vocabulary term
<code>observable</code>
MUST be serialized as a JSON name within a Property object.
</span></li>
<li><span class="rfc2119-assertion" id="td-property-names_oneOf">
The vocabulary term
<code>oneOf</code>
MUST be serialized as a JSON name within a Property object.
</span></li>
<li><span class="rfc2119-assertion" id="td-property-names_properties">
The vocabulary term
<code>properties</code>
MUST be serialized as a JSON name within a Property object.
</span></li>
<li><span class="rfc2119-assertion" id="td-property-names_readOnly">
The vocabulary term
<code>readOnly</code>
MUST be serialized as a JSON name within a Property object.
</span></li>
<li><span class="rfc2119-assertion" id="td-property-names_required">
The vocabulary term
<code>required</code>
MUST be serialized as a JSON name within a Property object.
</span></li>
<li><span class="rfc2119-assertion" id="td-property-names_title">
The vocabulary term
<code>title</code>
MUST be serialized as a JSON name within a Property object.
</span></li>
<li><span class="rfc2119-assertion" id="td-property-names_titles">
The vocabulary term
<code>titles</code>
MUST be serialized as a JSON name within a Property object.
</span></li>
<li><span class="rfc2119-assertion" id="td-property-names_type">
The vocabulary term
<code>type</code>
MUST be serialized as a JSON name within a Property object.
</span></li>
<li><span class="rfc2119-assertion" id="td-property-names_unit">
The vocabulary term
<code>unit</code>
MUST be serialized as a JSON name within a Property object.
</span></li>
<li><span class="rfc2119-assertion" id="td-property-names_uriVariables">
The vocabulary term
<code>uriVariables</code>
MUST be serialized as a JSON name within a Property object.
</span></li>
<li><span class="rfc2119-assertion" id="td-property-names_writeOnly">
The vocabulary term
<code>writeOnly</code>
MUST be serialized as a JSON name within a Property object.
</span></li>
<!--
<li><span class="rfc2119-assertion"
id="td-security-overrides_form">
Security schemes MAY be specified within a form.
In this case, definitions at the lower levels override (completely replace) definitions at the higher level.
</span></li>
-->
<li><span class="rfc2119-assertion" id="td-title-description_descriptions">
If description and descriptions are defined at the same time at the JSON level, description MAY be seen as default text.
</span></li>
<li><span class="rfc2119-assertion" id="td-title-description_titles">
If title and titles are defined at the same time at the JSON level, title MAY be seen as default text.
</span></li>
<!--
<li><span class="rfc2119-assertion" id="td-vocab-description_security">
A description that provides additional (human-readable) information based on a default language MAY be included
within a SecurityScheme.
</span></li>
-->
<li><span class="rfc2119-assertion" id="td-vocab-scheme--SecurityScheme_apikey">
scheme: Identification of security mechanism being configured MAY be set to <code>"apikey"</code>.
</span></li>
<li><span class="rfc2119-assertion" id="td-vocab-scheme--SecurityScheme_basic">
scheme: Identification of security mechanism being configured MAY be set to <code>"basic"</code>.
</span></li>
<li><span class="rfc2119-assertion" id="td-vocab-scheme--SecurityScheme_bearer">
scheme: Identification of security mechanism being configured MAY be set to <code>"bearer"</code>.
</span></li>
<li><span class="rfc2119-assertion" id="td-vocab-scheme--SecurityScheme_cert">
scheme: Identification of security mechanism being configured MAY be set to <code>"cert"</code>.
</span></li>
<li><span class="rfc2119-assertion" id="td-vocab-scheme--SecurityScheme_digest">
scheme: Identification of security mechanism being configured MAY be set to <code>"digest"</code>.
</span></li>
<li><span class="rfc2119-assertion" id="td-vocab-scheme--SecurityScheme_nosec">
scheme: Identification of security mechanism being configured MAY be set to <code>"nosec"</code>.
</span></li>
<li><span class="rfc2119-assertion" id="td-vocab-scheme--SecurityScheme_oauth2">
scheme: Identification of security mechanism being configured MAY be set to <code>"oauth2"</code>.
</span></li>
<li><span class="rfc2119-assertion" id="td-vocab-scheme--SecurityScheme_pop">
scheme: Identification of security mechanism being configured MAY be set to <code>"pop"</code>.
</span></li>
<li><span class="rfc2119-assertion" id="td-vocab-scheme--SecurityScheme_psk">
scheme: Identification of security mechanism being configured MAY be set to <code>"psk"</code>.
</span></li>
<li><span class="rfc2119-assertion" id="td-vocab-scheme--SecurityScheme_public">
scheme: Identification of security mechanism being configured MAY be set to <code>"public"</code>.
</span></li>
</ul>
</body>
</html>