{"action":"created","issue":{"url":"https://api.github.com/repos/bootprint/bootprint-openapi/issues/63","repository_url":"https://api.github.com/repos/bootprint/bootprint-openapi","labels_url":"https://api.github.com/repos/bootprint/bootprint-openapi/issues/63/labels{/name}","comments_url":"https://api.github.com/repos/bootprint/bootprint-openapi/issues/63/comments","events_url":"https://api.github.com/repos/bootprint/bootprint-openapi/issues/63/events","html_url":"https://github.com/bootprint/bootprint-openapi/issues/63","id":144845133,"number":63,"title":"Properties in \"oneOf\" are omitted","user":{"login":"aznan2","id":17455273,"avatar_url":"https://avatars.githubusercontent.com/u/17455273?v=3","gravatar_id":"","url":"https://api.github.com/users/aznan2","html_url":"https://github.com/aznan2","followers_url":"https://api.github.com/users/aznan2/followers","following_url":"https://api.github.com/users/aznan2/following{/other_user}","gists_url":"https://api.github.com/users/aznan2/gists{/gist_id}","starred_url":"https://api.github.com/users/aznan2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aznan2/subscriptions","organizations_url":"https://api.github.com/users/aznan2/orgs","repos_url":"https://api.github.com/users/aznan2/repos","events_url":"https://api.github.com/users/aznan2/events{/privacy}","received_events_url":"https://api.github.com/users/aznan2/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-03-31T09:41:09Z","updated_at":"2016-03-31T11:24:32Z","closed_at":"2016-03-31T11:09:09Z","body":"Given the a swagger file with a data type that contain exclusively one set of properties or another, along with some properties that may/will be there in either case, only the latter will show up in the generated HTML. That is, the following swagger will only produce the properties `propertyThatWillBeThereNoMatterWhat` and `propertyThatMayBeThereInEitherCase`:\r\n\r\n```json\r\n{\r\n  \"swagger\": \"2.0\",\r\n  \"info\": {\r\n    \"title\": \"Test\",\r\n    \"version\": \"1.0\"\r\n  },\r\n  \"paths\": {\r\n    \"/test\": {\r\n      \"get\": {\r\n        \"summary\": \"Test schema with oneOf.\",\r\n        \"responses\": {\r\n          \"200\": {\r\n            \"description\": \"A datatype that can contain some properties, or some others.\",\r\n            \"schema\": {\r\n              \"$ref\": \"#/definitions/thedata\"\r\n            }\r\n          }\r\n        }\r\n      }\r\n    }\r\n  },\r\n  \"definitions\": {\r\n    \"thedata\": {\r\n      \"title\": \"The Data\",\r\n      \"type\": \"object\",\r\n      \"oneOf\": [\r\n        {\r\n          \"properties\": {\r\n            \"propertyInFirstCase\": {\r\n              \"type\": \"string\"\r\n            },\r\n            \"requiredInFirstCase\": {\r\n              \"type\": \"string\"\r\n            }\r\n          },\r\n          \"required\": [\r\n            \"requiredInFirstCase\"\r\n          ]\r\n        },\r\n        {\r\n          \"properties\": {\r\n            \"propertyInSecondCase\": {\r\n              \"type\": \"string\"\r\n            },\r\n            \"requiredInSecondCase\": {\r\n              \"type\": \"string\"\r\n            }\r\n          },\r\n          \"required\": [\r\n            \"requiredInSecondCase\"\r\n          ]\r\n        }\r\n      ],\r\n      \"properties\": {\r\n        \"propertyThatWillBeThereNoMatterWhat\": {\r\n          \"type\": \"string\"\r\n        },\r\n        \"propertyThatMayBeThereInEitherCase\": {\r\n          \"type\": \"string\"\r\n        }\r\n      },\r\n      \"required\": [\r\n        \"propertyThatWillBeThereNoMatterWhat\"\r\n      ]\r\n    }\r\n  }\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/bootprint/bootprint-openapi/issues/comments/203885450","html_url":"https://github.com/bootprint/bootprint-openapi/issues/63#issuecomment-203885450","issue_url":"https://api.github.com/repos/bootprint/bootprint-openapi/issues/63","id":203885450,"user":{"login":"nknapp","id":636150,"avatar_url":"https://avatars.githubusercontent.com/u/636150?v=3","gravatar_id":"","url":"https://api.github.com/users/nknapp","html_url":"https://github.com/nknapp","followers_url":"https://api.github.com/users/nknapp/followers","following_url":"https://api.github.com/users/nknapp/following{/other_user}","gists_url":"https://api.github.com/users/nknapp/gists{/gist_id}","starred_url":"https://api.github.com/users/nknapp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nknapp/subscriptions","organizations_url":"https://api.github.com/users/nknapp/orgs","repos_url":"https://api.github.com/users/nknapp/repos","events_url":"https://api.github.com/users/nknapp/events{/privacy}","received_events_url":"https://api.github.com/users/nknapp/received_events","type":"User","site_admin":false},"created_at":"2016-03-31T11:24:32Z","updated_at":"2016-03-31T11:24:32Z","body":"Since this is part of `bootprint-json-schema` it should be included anyway, some time. This should be an issue in `bootprint-json-schema` then."}}