{"action":"created","issue":{"url":"https://api.github.com/repos/01org/zephyr.js/issues/1144","repository_url":"https://api.github.com/repos/01org/zephyr.js","labels_url":"https://api.github.com/repos/01org/zephyr.js/issues/1144/labels{/name}","comments_url":"https://api.github.com/repos/01org/zephyr.js/issues/1144/comments","events_url":"https://api.github.com/repos/01org/zephyr.js/issues/1144/events","html_url":"https://github.com/01org/zephyr.js/issues/1144","id":228613370,"number":1144,"title":"The registered resource type string 'rt' will be truncated to 16 characters","user":{"login":"ttzeng","id":1763431,"avatar_url":"https://avatars1.githubusercontent.com/u/1763431?v=3","gravatar_id":"","url":"https://api.github.com/users/ttzeng","html_url":"https://github.com/ttzeng","followers_url":"https://api.github.com/users/ttzeng/followers","following_url":"https://api.github.com/users/ttzeng/following{/other_user}","gists_url":"https://api.github.com/users/ttzeng/gists{/gist_id}","starred_url":"https://api.github.com/users/ttzeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ttzeng/subscriptions","organizations_url":"https://api.github.com/users/ttzeng/orgs","repos_url":"https://api.github.com/users/ttzeng/repos","events_url":"https://api.github.com/users/ttzeng/events{/privacy}","received_events_url":"https://api.github.com/users/ttzeng/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-05-15T06:01:11Z","updated_at":"2017-05-16T15:52:54Z","closed_at":"2017-05-15T17:57:48Z","body":"It seems the given `resourceTypes` strings for registering a resource will be truncated. For example, my [led.js server](https://github.com/01org/SmartHome-Demo/blob/1c7b21baf567568c3faf11f0234a8de1d0ad4752/ocf-servers/zjs-servers/led.js#L27) registers a resource of type `oic.r.switch.binary`, but the iot-rest-api-server reports it as a resource of type `oic.r.switch.bin` (see below). Same behavior observed on registering a button resource of type `oic.r.sensor.motion` becomes `oic.r.sensor.mot`, and resource of type `oic.r.temperature` becomes `oic.r.temperatur.`\r\n\r\n`{\"di\":\"a4546509-fd54-4509-4d55-65099d556509\",\"links\":[{\"href\":\"/a/led\",\"rt\":\"oic.r.switch.bin\",\"if\":\"oic.if.baseline\",\"p\":{\"bm\":1,\"secure\":false}}]}`\r\n\r\nSummary:\r\n```\r\noic.r.switch.binary   --> oic.r.switch.bin\r\noic.r.sensor.motion --> oic.r.sensor.mot\r\noic.r.temperature    --> oic.r.temperatur\r\n```"},"comment":{"url":"https://api.github.com/repos/01org/zephyr.js/issues/comments/301827255","html_url":"https://github.com/01org/zephyr.js/issues/1144#issuecomment-301827255","issue_url":"https://api.github.com/repos/01org/zephyr.js/issues/1144","id":301827255,"user":{"login":"jprestwo","id":8986787,"avatar_url":"https://avatars3.githubusercontent.com/u/8986787?v=3","gravatar_id":"","url":"https://api.github.com/users/jprestwo","html_url":"https://github.com/jprestwo","followers_url":"https://api.github.com/users/jprestwo/followers","following_url":"https://api.github.com/users/jprestwo/following{/other_user}","gists_url":"https://api.github.com/users/jprestwo/gists{/gist_id}","starred_url":"https://api.github.com/users/jprestwo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jprestwo/subscriptions","organizations_url":"https://api.github.com/users/jprestwo/orgs","repos_url":"https://api.github.com/users/jprestwo/repos","events_url":"https://api.github.com/users/jprestwo/events{/privacy}","received_events_url":"https://api.github.com/users/jprestwo/received_events","type":"User","site_admin":false},"created_at":"2017-05-16T15:52:54Z","updated_at":"2017-05-16T15:52:54Z","body":"Since we target embedded devices we do have to have some upper limit on the length. If 32 is enough, for now at least, lets leave it at that."}}
{"actor":{"display_login":"jprestwo"}}