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