{"action":"created","issue":{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/488","labels_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/488/labels{/name}","comments_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/488/comments","events_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/488/events","html_url":"https://github.com/swagger-api/swagger-codegen/issues/488","id":60692222,"number":488,"title":"Support oneOf","user":{"login":"toaster33","id":2971768,"avatar_url":"https://avatars.githubusercontent.com/u/2971768?v=3","gravatar_id":"","url":"https://api.github.com/users/toaster33","html_url":"https://github.com/toaster33","followers_url":"https://api.github.com/users/toaster33/followers","following_url":"https://api.github.com/users/toaster33/following{/other_user}","gists_url":"https://api.github.com/users/toaster33/gists{/gist_id}","starred_url":"https://api.github.com/users/toaster33/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toaster33/subscriptions","organizations_url":"https://api.github.com/users/toaster33/orgs","repos_url":"https://api.github.com/users/toaster33/repos","events_url":"https://api.github.com/users/toaster33/events{/privacy}","received_events_url":"https://api.github.com/users/toaster33/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-11T17:03:39Z","updated_at":"2015-03-13T16:06:26Z","closed_at":"2015-03-13T16:06:26Z","body":"Curious if there is / will be support for [oneOf](http://json-schema.org/example2.html) in the code generator?  Thanks.\r\n\r\n```\r\n\"properties\": {\r\n        \"storage\": {\r\n            \"type\": \"object\",\r\n            \"oneOf\": [\r\n                { \"$ref\": \"#/definitions/diskDevice\" },\r\n                { \"$ref\": \"#/definitions/diskUUID\" },\r\n                { \"$ref\": \"#/definitions/nfs\" },\r\n                { \"$ref\": \"#/definitions/tmpfs\" }\r\n            ]\r\n        }\r\n    }\r\n````"},"comment":{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/comments/79082922","html_url":"https://github.com/swagger-api/swagger-codegen/issues/488#issuecomment-79082922","issue_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/488","id":79082922,"user":{"login":"webron","id":241629,"avatar_url":"https://avatars.githubusercontent.com/u/241629?v=3","gravatar_id":"","url":"https://api.github.com/users/webron","html_url":"https://github.com/webron","followers_url":"https://api.github.com/users/webron/followers","following_url":"https://api.github.com/users/webron/following{/other_user}","gists_url":"https://api.github.com/users/webron/gists{/gist_id}","starred_url":"https://api.github.com/users/webron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webron/subscriptions","organizations_url":"https://api.github.com/users/webron/orgs","repos_url":"https://api.github.com/users/webron/repos","events_url":"https://api.github.com/users/webron/events{/privacy}","received_events_url":"https://api.github.com/users/webron/received_events","type":"User","site_admin":false},"created_at":"2015-03-13T16:06:26Z","updated_at":"2015-03-13T16:06:26Z","body":"I guess we can close this one for now then. There are reasons why we don't support oneOf, but that discussion belongs to the swagger-spec repository. If you'd like to suggest future support for it, feel free to open an issue there."}}