{"action":"created","issue":{"url":"https://api.github.com/repos/Jumpscale/go-raml/issues/25","repository_url":"https://api.github.com/repos/Jumpscale/go-raml","labels_url":"https://api.github.com/repos/Jumpscale/go-raml/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/Jumpscale/go-raml/issues/25/comments","events_url":"https://api.github.com/repos/Jumpscale/go-raml/issues/25/events","html_url":"https://github.com/Jumpscale/go-raml/issues/25","id":135684350,"number":25,"title":"Parser doesn't support 'Shortcuts and Syntactic Sugar'","user":{"login":"zaibon","id":303164,"avatar_url":"https://avatars.githubusercontent.com/u/303164?v=3","gravatar_id":"","url":"https://api.github.com/users/zaibon","html_url":"https://github.com/zaibon","followers_url":"https://api.github.com/users/zaibon/followers","following_url":"https://api.github.com/users/zaibon/following{/other_user}","gists_url":"https://api.github.com/users/zaibon/gists{/gist_id}","starred_url":"https://api.github.com/users/zaibon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zaibon/subscriptions","organizations_url":"https://api.github.com/users/zaibon/orgs","repos_url":"https://api.github.com/users/zaibon/repos","events_url":"https://api.github.com/users/zaibon/events{/privacy}","received_events_url":"https://api.github.com/users/zaibon/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Jumpscale/go-raml/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"iwanbk","id":977552,"avatar_url":"https://avatars.githubusercontent.com/u/977552?v=3","gravatar_id":"","url":"https://api.github.com/users/iwanbk","html_url":"https://github.com/iwanbk","followers_url":"https://api.github.com/users/iwanbk/followers","following_url":"https://api.github.com/users/iwanbk/following{/other_user}","gists_url":"https://api.github.com/users/iwanbk/gists{/gist_id}","starred_url":"https://api.github.com/users/iwanbk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iwanbk/subscriptions","organizations_url":"https://api.github.com/users/iwanbk/orgs","repos_url":"https://api.github.com/users/iwanbk/repos","events_url":"https://api.github.com/users/iwanbk/events{/privacy}","received_events_url":"https://api.github.com/users/iwanbk/received_events","type":"User","site_admin":false},"milestone":null,"comments":0,"created_at":"2016-02-23T09:34:59Z","updated_at":"2016-02-23T10:10:36Z","closed_at":null,"body":"From the raml specs http://docs.raml.org/specs/1.0/#raml-10-spec-shortcuts-and-syntactic-sugar\r\n\r\nit should be possible to write something like :\r\n```raml\r\nNamespace:\r\n    type: object\r\n    properties:\r\n        name:\r\n           type: string\r\n```\r\n\r\nin a shorter form\r\n```raml\r\nNamespace:\r\n    properties:\r\n        name: string\r\n```\r\n\r\nBut the parser outputs error when trying to deal with the short form\r\n```\r\nline 19: cannot unmarshal !!str `string` into raml.Property\r\nsource:  string\r\nERRO[2016-02-23T10:31:41+01:00] Error parsing RAML:\r\n  line 19: raml.Property cannot be of type string (got `string`), must be \r\n```"},"comment":{"url":"https://api.github.com/repos/Jumpscale/go-raml/issues/comments/187637338","html_url":"https://github.com/Jumpscale/go-raml/issues/25#issuecomment-187637338","issue_url":"https://api.github.com/repos/Jumpscale/go-raml/issues/25","id":187637338,"user":{"login":"iwanbk","id":977552,"avatar_url":"https://avatars.githubusercontent.com/u/977552?v=3","gravatar_id":"","url":"https://api.github.com/users/iwanbk","html_url":"https://github.com/iwanbk","followers_url":"https://api.github.com/users/iwanbk/followers","following_url":"https://api.github.com/users/iwanbk/following{/other_user}","gists_url":"https://api.github.com/users/iwanbk/gists{/gist_id}","starred_url":"https://api.github.com/users/iwanbk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iwanbk/subscriptions","organizations_url":"https://api.github.com/users/iwanbk/orgs","repos_url":"https://api.github.com/users/iwanbk/repos","events_url":"https://api.github.com/users/iwanbk/events{/privacy}","received_events_url":"https://api.github.com/users/iwanbk/received_events","type":"User","site_admin":false},"created_at":"2016-02-23T10:10:36Z","updated_at":"2016-02-23T10:10:36Z","body":"@zaibon \r\nShortcut and syntaxtic sugar is actually in the limitation https://github.com/Jumpscale/go-raml/blob/master/docs/limitations.md\r\n\r\nBut i will work on it tomorrow, look like i will have some spare time tomorrow."}}