{"action":"opened","issue":{"url":"https://api.github.com/repos/VasiliyLysokobylko/raml-js-parser2-issues/issues/20","repository_url":"https://api.github.com/repos/VasiliyLysokobylko/raml-js-parser2-issues","labels_url":"https://api.github.com/repos/VasiliyLysokobylko/raml-js-parser2-issues/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/VasiliyLysokobylko/raml-js-parser2-issues/issues/20/comments","events_url":"https://api.github.com/repos/VasiliyLysokobylko/raml-js-parser2-issues/issues/20/events","html_url":"https://github.com/VasiliyLysokobylko/raml-js-parser2-issues/issues/20","id":146545145,"number":20,"title":"Add additional restrictions on pattern properties ","user":{"login":"VasiliyLysokobylko","id":13314242,"avatar_url":"https://avatars.githubusercontent.com/u/13314242?v=3","gravatar_id":"","url":"https://api.github.com/users/VasiliyLysokobylko","html_url":"https://github.com/VasiliyLysokobylko","followers_url":"https://api.github.com/users/VasiliyLysokobylko/followers","following_url":"https://api.github.com/users/VasiliyLysokobylko/following{/other_user}","gists_url":"https://api.github.com/users/VasiliyLysokobylko/gists{/gist_id}","starred_url":"https://api.github.com/users/VasiliyLysokobylko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VasiliyLysokobylko/subscriptions","organizations_url":"https://api.github.com/users/VasiliyLysokobylko/orgs","repos_url":"https://api.github.com/users/VasiliyLysokobylko/repos","events_url":"https://api.github.com/users/VasiliyLysokobylko/events{/privacy}","received_events_url":"https://api.github.com/users/VasiliyLysokobylko/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/VasiliyLysokobylko/raml-js-parser2-issues/labels/behavioral/structural","name":"behavioral/structural","color":"ededed"},{"url":"https://api.github.com/repos/VasiliyLysokobylko/raml-js-parser2-issues/labels/closed","name":"closed","color":"ededed"},{"url":"https://api.github.com/repos/VasiliyLysokobylko/raml-js-parser2-issues/labels/raml10-rc2","name":"raml10-rc2","color":"ededed"},{"url":"https://api.github.com/repos/VasiliyLysokobylko/raml-js-parser2-issues/labels/spec-consistency","name":"spec-consistency","color":"ededed"},{"url":"https://api.github.com/repos/VasiliyLysokobylko/raml-js-parser2-issues/labels/type-system","name":"type-system","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-07T08:24:44Z","updated_at":"2016-04-07T08:24:44Z","closed_at":null,"body":"Currently in RAML 1.0 RC1, it is fully valid to declare a pattern property whose regex will match on an existing property name. For example:\r\n\r\n```yaml\r\nPerson:\r\n   a: string\r\n   [a] : number\r\n```\r\n\r\nThis definition is illegal because property with name 'a' will be matched both to normal property and to a pattern property. RC2 should clearly state that this situations are not valid to avoid these conflicts."}}