{"action":"closed","issue":{"url":"https://api.github.com/repos/w3c/wot-thing-description/issues/156","repository_url":"https://api.github.com/repos/w3c/wot-thing-description","labels_url":"https://api.github.com/repos/w3c/wot-thing-description/issues/156/labels{/name}","comments_url":"https://api.github.com/repos/w3c/wot-thing-description/issues/156/comments","events_url":"https://api.github.com/repos/w3c/wot-thing-description/issues/156/events","html_url":"https://github.com/w3c/wot-thing-description/issues/156","id":334051474,"node_id":"MDU6SXNzdWUzMzQwNTE0NzQ=","number":156,"title":"Rename of label to title and enum titles 'oneOf' ","user":{"login":"benfrancis","id":552417,"node_id":"MDQ6VXNlcjU1MjQxNw==","avatar_url":"https://avatars3.githubusercontent.com/u/552417?v=4","gravatar_id":"","url":"https://api.github.com/users/benfrancis","html_url":"https://github.com/benfrancis","followers_url":"https://api.github.com/users/benfrancis/followers","following_url":"https://api.github.com/users/benfrancis/following{/other_user}","gists_url":"https://api.github.com/users/benfrancis/gists{/gist_id}","starred_url":"https://api.github.com/users/benfrancis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benfrancis/subscriptions","organizations_url":"https://api.github.com/users/benfrancis/orgs","repos_url":"https://api.github.com/users/benfrancis/repos","events_url":"https://api.github.com/users/benfrancis/events{/privacy}","received_events_url":"https://api.github.com/users/benfrancis/received_events","type":"User","site_admin":false},"labels":[{"id":1105753600,"node_id":"MDU6TGFiZWwxMTA1NzUzNjAw","url":"https://api.github.com/repos/w3c/wot-thing-description/labels/Needs%20review","name":"Needs review","color":"066070","default":false}],"state":"closed","locked":false,"assignee":{"login":"sebastiankb","id":13832739,"node_id":"MDQ6VXNlcjEzODMyNzM5","avatar_url":"https://avatars3.githubusercontent.com/u/13832739?v=4","gravatar_id":"","url":"https://api.github.com/users/sebastiankb","html_url":"https://github.com/sebastiankb","followers_url":"https://api.github.com/users/sebastiankb/followers","following_url":"https://api.github.com/users/sebastiankb/following{/other_user}","gists_url":"https://api.github.com/users/sebastiankb/gists{/gist_id}","starred_url":"https://api.github.com/users/sebastiankb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebastiankb/subscriptions","organizations_url":"https://api.github.com/users/sebastiankb/orgs","repos_url":"https://api.github.com/users/sebastiankb/repos","events_url":"https://api.github.com/users/sebastiankb/events{/privacy}","received_events_url":"https://api.github.com/users/sebastiankb/received_events","type":"User","site_admin":false},"assignees":[{"login":"sebastiankb","id":13832739,"node_id":"MDQ6VXNlcjEzODMyNzM5","avatar_url":"https://avatars3.githubusercontent.com/u/13832739?v=4","gravatar_id":"","url":"https://api.github.com/users/sebastiankb","html_url":"https://github.com/sebastiankb","followers_url":"https://api.github.com/users/sebastiankb/followers","following_url":"https://api.github.com/users/sebastiankb/following{/other_user}","gists_url":"https://api.github.com/users/sebastiankb/gists{/gist_id}","starred_url":"https://api.github.com/users/sebastiankb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebastiankb/subscriptions","organizations_url":"https://api.github.com/users/sebastiankb/orgs","repos_url":"https://api.github.com/users/sebastiankb/repos","events_url":"https://api.github.com/users/sebastiankb/events{/privacy}","received_events_url":"https://api.github.com/users/sebastiankb/received_events","type":"User","site_admin":false}],"milestone":null,"comments":29,"created_at":"2018-06-20T12:19:11Z","updated_at":"2018-12-11T09:52:26Z","closed_at":"2018-12-11T09:52:26Z","author_association":"NONE","body":"When adding labels to properties and actions in Mozilla's implementation as per the latest Editor's Draft, @mrstegeman asked:\r\n\r\nShould there also be labels for events, event data and action inputs?\r\n\r\nAs an example use case, we generate graphical forms for action inputs from the JSON Schema in a Thing Description.\r\n\r\nFor example, an action like:\r\n```\r\n{\r\n  \"actions\": {\r\n    \"advanced\": {\r\n      \"input\": {\r\n        \"type\": \"object\",\r\n        \"properties\": {\r\n          \"numberInput\": {\r\n            \"type\": \"number\",\r\n            \"minimum\": 0,\r\n            \"maximum\": 100,\r\n            \"unit\": \"percent\"\r\n          },\r\n          \"integerInput\": {\r\n            \"type\": \"integer\",\r\n            \"unit\": \"meters\"\r\n          },\r\n          \"stringInput\": {\r\n            \"type\": \"string\"\r\n          },\r\n          \"booleanInput\": {\r\n            \"type\": \"boolean\"\r\n          }\r\n        }\r\n      }\r\n    }\r\n  }\r\n}\r\n```\r\n\r\nWould be rendered like this:\r\n![screen shot 2018-06-20 at 13 00 47](https://user-images.githubusercontent.com/552417/41657307-dcc62030-748a-11e8-993b-7e7dd40413b8.png)\r\n\r\nIt would be nice to provide more human-friendly labels for those input fields.\r\n\r\nWe also render a log of events, like this:\r\n![event-log](https://user-images.githubusercontent.com/552417/41657413-3a08ff1a-748b-11e8-9c14-04d98c91bbe7.png)\r\n\r\nIt could be straightforward to add `label` to events as well as properties and actions. Could JSON Schema also accommodate human-friendly `label`s for sub-properties of objects?"}}
{"actor":{"display_login":"sebastiankb"}}