Skip to content

Commit

Permalink
Introduce DataSchema for property 'things' (#538)
Browse files Browse the repository at this point in the history
* feat: introduce DataSchema for property 'things'

* fixup! feat: introduce DataSchema for property 'things'
  • Loading branch information
relu91 authored Feb 26, 2024
1 parent d1cdaec commit bfd5eea
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions directory.tm.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,48 @@
"properties": {
"things": {
"description": "Retrieve all Thing Descriptions",
"oneOf": [
{
"description": "Plain list of Thing Descriptions",
"type": "array",
"items": {
"description": "Thing Description",
"type": "object"
}
},
{
"type": "object",
"description": "Verbose payload with pagination information, see format Uri variable",
"properties": {
"@context": {
"const": "https://www.w3.org/2022/wot/discovery"
},
"@type": {
"const": "ThingCollection"
},
"@id": {
"description": "URI of this collection",
"type": "string"
},
"members": {
"description": "Thing Descriptions",
"type": "array",
"items": {
"description": "Thing Description",
"type": "object"
}
},
"total": {
"description": "Total number of Thing Descriptions in this collection",
"type": "number"
},
"next": {
"description": "URI of the next page",
"type": "string"
}
}
}
],
"uriVariables": {
"offset": {
"title": "Number of TDs to skip before the page",
Expand Down

0 comments on commit bfd5eea

Please sign in to comment.