{"action":"created","issue":{"url":"https://api.github.com/repos/petrochenko-pavel-a/raml-js-parser2-issues/issues/28","repository_url":"https://api.github.com/repos/petrochenko-pavel-a/raml-js-parser2-issues","labels_url":"https://api.github.com/repos/petrochenko-pavel-a/raml-js-parser2-issues/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/petrochenko-pavel-a/raml-js-parser2-issues/issues/28/comments","events_url":"https://api.github.com/repos/petrochenko-pavel-a/raml-js-parser2-issues/issues/28/events","html_url":"https://github.com/petrochenko-pavel-a/raml-js-parser2-issues/issues/28","id":146560265,"number":28,"title":"Merging process of optional query parameter in traits is counter-intuitive","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/petrochenko-pavel-a/raml-js-parser2-issues/labels/closed","name":"closed","color":"b60205"},{"url":"https://api.github.com/repos/petrochenko-pavel-a/raml-js-parser2-issues/labels/raml10-rc2","name":"raml10-rc2","color":"0e8a16"},{"url":"https://api.github.com/repos/petrochenko-pavel-a/raml-js-parser2-issues/labels/spec-consistency","name":"spec-consistency","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-07T09:30:37Z","updated_at":"2016-04-20T19:57:26Z","closed_at":"2016-04-20T19:57:26Z","body":"Due to the following wordings in the spec, located in Optional Properties subsection of Resource Types and Traits section:\r\n>To accommodate this need, a resource type or trait definition MAY append a question mark (\"?\") suffix to the name of any object-valued property that should not be applied if it doesn't already exist in the resource or method at the corresponding level. A property is considered object-valued if its value is of type object or of a type that has object at the base of its inheritance hierarchy. The question mark suffix indicates that the value of the property in the resource type or trait should be applied if the property name itself (without the question mark) is already defined (whether explicitly or implicitly) at the corresponding level in that resource or method.\r\n\r\noptional query parameter defined in a trait is not merged into a method unless such parameter is already defined in the method itself.\r\n\r\nThis is not something users expect.\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/petrochenko-pavel-a/raml-js-parser2-issues/issues/comments/212579794","html_url":"https://github.com/petrochenko-pavel-a/raml-js-parser2-issues/issues/28#issuecomment-212579794","issue_url":"https://api.github.com/repos/petrochenko-pavel-a/raml-js-parser2-issues/issues/28","id":212579794,"user":{"login":"petrochenko-pavel-a","id":750078,"avatar_url":"https://avatars.githubusercontent.com/u/750078?v=3","gravatar_id":"","url":"https://api.github.com/users/petrochenko-pavel-a","html_url":"https://github.com/petrochenko-pavel-a","followers_url":"https://api.github.com/users/petrochenko-pavel-a/followers","following_url":"https://api.github.com/users/petrochenko-pavel-a/following{/other_user}","gists_url":"https://api.github.com/users/petrochenko-pavel-a/gists{/gist_id}","starred_url":"https://api.github.com/users/petrochenko-pavel-a/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petrochenko-pavel-a/subscriptions","organizations_url":"https://api.github.com/users/petrochenko-pavel-a/orgs","repos_url":"https://api.github.com/users/petrochenko-pavel-a/repos","events_url":"https://api.github.com/users/petrochenko-pavel-a/events{/privacy}","received_events_url":"https://api.github.com/users/petrochenko-pavel-a/received_events","type":"User","site_admin":false},"created_at":"2016-04-20T19:57:26Z","updated_at":"2016-04-20T19:57:26Z","body":"Implemented"}}