You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"name" is used elsewhere to be a human friendly name whereas the name of actions and events is a computer friendly string like the property, action and event keys in the Thing Description.
Maybe name should be something else, like "type".
The text was updated successfully, but these errors were encountered:
{
"name": "reboot",
"description": "Going down for reboot",
"time": "2017-01-25T15:01:35+00:00"
}
is now inconsistent with the format of Property resources...
{
"temperature": 21
}
...which use the property name as a key rather than using a "name" property of the object.
The definition of the WebSocket API makes this difference even more obvious. It would be nice to make this more consistent.
benfrancis
changed the title
Reconsider "name" member of action and event resources
Reconsider the format of Action resources and Event resources
May 30, 2017
"name" is used elsewhere to be a human friendly name whereas the name of actions and events is a computer friendly string like the property, action and event keys in the Thing Description.
Maybe name should be something else, like "type".
The text was updated successfully, but these errors were encountered: