{"action":"closed","issue":{"url":"https://api.github.com/repos/SignalK/specification/issues/156","repository_url":"https://api.github.com/repos/SignalK/specification","labels_url":"https://api.github.com/repos/SignalK/specification/issues/156/labels{/name}","comments_url":"https://api.github.com/repos/SignalK/specification/issues/156/comments","events_url":"https://api.github.com/repos/SignalK/specification/issues/156/events","html_url":"https://github.com/SignalK/specification/issues/156","id":128349075,"number":156,"title":"AIS vessel name structure","user":{"login":"tkurki","id":1049678,"avatar_url":"https://avatars.githubusercontent.com/u/1049678?v=3","gravatar_id":"","url":"https://api.github.com/users/tkurki","html_url":"https://github.com/tkurki","followers_url":"https://api.github.com/users/tkurki/followers","following_url":"https://api.github.com/users/tkurki/following{/other_user}","gists_url":"https://api.github.com/users/tkurki/gists{/gist_id}","starred_url":"https://api.github.com/users/tkurki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tkurki/subscriptions","organizations_url":"https://api.github.com/users/tkurki/orgs","repos_url":"https://api.github.com/users/tkurki/repos","events_url":"https://api.github.com/users/tkurki/events{/privacy}","received_events_url":"https://api.github.com/users/tkurki/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/SignalK/specification/milestones/1","html_url":"https://github.com/SignalK/specification/milestones/v1","labels_url":"https://api.github.com/repos/SignalK/specification/milestones/1/labels","id":1236032,"number":1,"title":"v1","description":"","creator":{"login":"fabdrol","id":123201,"avatar_url":"https://avatars.githubusercontent.com/u/123201?v=3","gravatar_id":"","url":"https://api.github.com/users/fabdrol","html_url":"https://github.com/fabdrol","followers_url":"https://api.github.com/users/fabdrol/followers","following_url":"https://api.github.com/users/fabdrol/following{/other_user}","gists_url":"https://api.github.com/users/fabdrol/gists{/gist_id}","starred_url":"https://api.github.com/users/fabdrol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabdrol/subscriptions","organizations_url":"https://api.github.com/users/fabdrol/orgs","repos_url":"https://api.github.com/users/fabdrol/repos","events_url":"https://api.github.com/users/fabdrol/events{/privacy}","received_events_url":"https://api.github.com/users/fabdrol/received_events","type":"User","site_admin":false},"open_issues":8,"closed_issues":6,"state":"open","created_at":"2015-08-01T07:46:43Z","updated_at":"2016-02-14T19:19:22Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2016-01-23T20:04:35Z","updated_at":"2016-02-14T19:19:22Z","closed_at":"2016-02-14T19:19:22Z","body":"In the current schema vessel name is a plain string. The `self` vessel's name doesn't normally appear in the delta stream (it might if it changes?).\r\n\r\nAIS vessel names appear in the delta stream when AIS static data messages are received. This puts name in path `name` under vessel's context root in the delta message.\r\n\r\nWhen deltas are added to full  tree there is a pretty simple logic: if the `value` received for a path is a plain value (number, string) it is inserted into the `value` property:\r\n```\r\n\"speedOverGround\": {\r\n  \"value\": 3.53,\r\n  \"source\": {},\r\n  \"timestamp\": \"2014-08-15-19:09:16.334\"\r\n}\r\n```\r\nand if the `value` is an object its properties will be inserted into the tree:\r\n```\r\n\"position\": {\r\n  \"longitude\": 24.7276789,\r\n  \"latitude\": 59.7086808,\r\n  \"source\": {...},\r\n  \"timestamp\": \"2014-08-15-19:09:15.633\"\r\n}\r\n```\r\n\r\nThere is no mechanism to distinguish the incoming AIS static update's `name` field to be used as it is and not wrapped without adding total schema awareness to this logic, which I would definitely like to avoid.\r\n\r\nI suggest we alter the schema and wrap the `name` field in the normal value structure.\r\n\r\nI guess there are / will be other cases like this."}}