Re: Project Things by Mozilla and the Web Thing API

On 14 Jul 2017 6:41 pm, "Benjamin Francis" <bfrancis@mozilla.com> wrote:

> For example, a simple JSON thing vocabulary could be used with an implied
> default context and a canonical list of simple built-in types:
>
> {
>   "name": "My On/Off Switch",
>   "type": "onOffSwitch",
>   "properties": {
>     "on": "boolean",
>     "href": "/properties/on"
>   }
> }
>


Oops, sorry I made a mistake. This example should be:

{
  "name": "My On/Off Switch",
  "type": "onOffSwitch",
  "properties": {
    "on": {
      "type": "boolean",
      "href": "/properties/on"
    }
  }
}

As per the proposal in
https://github.com/w3c/wot-thing-description/issues/12

Received on Saturday, 15 July 2017 09:49:47 UTC