WebThingsIO / api

Web Thing API Specification
http://iot.mozilla.org/wot/
Other
164 stars 24 forks source link

@type should be at top level of action #153

Closed benfrancis closed 4 years ago

benfrancis commented 4 years ago

In Example 8 the "@type": "FadeAction" should really be at the top level of the Action object rather than inside the input member, because the annotation applies to the action object and not the input. If there was an output member as well it would not have a separate @type.

Not sure what Mozilla WebThings implementations actually do here...

benfrancis commented 4 years ago

Thanks @mrstegeman ! I assume that this reflects what WebThings actually exposes?

mrstegeman commented 4 years ago

Yes, it was just a textual issue in this one example.