Closed benfrancis closed 6 years ago
Currently the W3C specification has conflicting information over whether this should be called "name" or "label".
Currently https://www.w3.org/TR/2018/WD-wot-thing-description-20180405/ has "name": "MyLampThing"
but perhaps it's label
in other places.
You might want to read https://tools.ietf.org/html/rfc8266 on nicknames for things. It can get complicated. ;-)
Currently https://www.w3.org/TR/2018/WD-wot-thing-description-20180405/ has "name": "MyLampThing" but perhaps it's label in other places.
Yes it's inconsistent. I've filed a bug.
You might want to read https://tools.ietf.org/html/rfc8266 on nicknames for things. It can get complicated. ;-)
Oh my!
Looks like this has now stabilised in the latest Editor's Draft and https://github.com/w3c/wot-thing-description/issues/123 is now closed.
Top level Thing has a "name" and interactions (properties, actions and events) have "label"s.
Correction: Events don't appear to have labels.
As a developer I want to specify a human friendly name for a property, action or event which can be displayed in UI (this is in addition to the machine friendly id used as the object key).