{"action":"created","issue":{"url":"https://api.github.com/repos/apiaryio/dredd/issues/439","repository_url":"https://api.github.com/repos/apiaryio/dredd","labels_url":"https://api.github.com/repos/apiaryio/dredd/issues/439/labels{/name}","comments_url":"https://api.github.com/repos/apiaryio/dredd/issues/439/comments","events_url":"https://api.github.com/repos/apiaryio/dredd/issues/439/events","html_url":"https://github.com/apiaryio/dredd/issues/439","id":147370872,"number":439,"title":"Data structures / One-Of / Incorrect rendering","user":{"login":"beyourselfman","id":16084575,"avatar_url":"https://avatars.githubusercontent.com/u/16084575?v=3","gravatar_id":"","url":"https://api.github.com/users/beyourselfman","html_url":"https://github.com/beyourselfman","followers_url":"https://api.github.com/users/beyourselfman/followers","following_url":"https://api.github.com/users/beyourselfman/following{/other_user}","gists_url":"https://api.github.com/users/beyourselfman/gists{/gist_id}","starred_url":"https://api.github.com/users/beyourselfman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beyourselfman/subscriptions","organizations_url":"https://api.github.com/users/beyourselfman/orgs","repos_url":"https://api.github.com/users/beyourselfman/repos","events_url":"https://api.github.com/users/beyourselfman/events{/privacy}","received_events_url":"https://api.github.com/users/beyourselfman/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/apiaryio/dredd/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/apiaryio/dredd/labels/Drafter%20/%20Protagonist","name":"Drafter / Protagonist","color":"6C7887"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-04-11T09:40:35Z","updated_at":"2016-05-20T15:20:25Z","closed_at":null,"body":"Hello dredd community,\r\n\r\nI noticed an odd behaviour when using data structures (mson) which contain mutually exclusive properties defined by the  \"One Of\" type. The following source gets rendered just fine under the apiary editor (https://app.apiary.io/, tested today 11:35 CET):\r\n\r\n```\r\n## jsonTaskBase (object)\r\n+ recurrence (jsonRecurrence)\r\n\r\n## jsonRecurrence (object)\r\n+ One of\r\n    + numberOfOccurences: 5 (number)\r\n    + endDate: `2015-04-08T12:30:00Z` (string)\r\n+ One of\r\n    + month: `march` (string)\r\n    + interval: 1 (number)\r\n```\r\n\r\nresults in:\r\n\r\n```\r\n{\r\n  \"recurrence\": {\r\n    \"numberOfOccurences\": 5,\r\n    \"month\": \"march\"\r\n  }\r\n}\r\n```\r\n\r\nUnder _dredd@1.0.8_ this gets rendered to:\r\n\r\n```\r\n{\r\n  \"recurrence\": {\r\n    \"\": [\r\n      [\r\n        \"march\"\r\n      ],\r\n      [\r\n        1\r\n      ]\r\n    ]\r\n  }\r\n}\r\n```\r\n\r\nIs this a bug or am I just using the data structures in an incorrect way? Thanks for your help."},"comment":{"url":"https://api.github.com/repos/apiaryio/dredd/issues/comments/220635448","html_url":"https://github.com/apiaryio/dredd/issues/439#issuecomment-220635448","issue_url":"https://api.github.com/repos/apiaryio/dredd/issues/439","id":220635448,"user":{"login":"pksunkara","id":174703,"avatar_url":"https://avatars.githubusercontent.com/u/174703?v=3","gravatar_id":"","url":"https://api.github.com/users/pksunkara","html_url":"https://github.com/pksunkara","followers_url":"https://api.github.com/users/pksunkara/followers","following_url":"https://api.github.com/users/pksunkara/following{/other_user}","gists_url":"https://api.github.com/users/pksunkara/gists{/gist_id}","starred_url":"https://api.github.com/users/pksunkara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pksunkara/subscriptions","organizations_url":"https://api.github.com/users/pksunkara/orgs","repos_url":"https://api.github.com/users/pksunkara/repos","events_url":"https://api.github.com/users/pksunkara/events{/privacy}","received_events_url":"https://api.github.com/users/pksunkara/received_events","type":"User","site_admin":false},"created_at":"2016-05-20T15:20:25Z","updated_at":"2016-05-20T15:20:25Z","body":"@honzajavorek Yes, this has been fixed in protagonist@1.3.3"}}
{"actor":{"display_login":"pksunkara"}}