{"action":"created","issue":{"url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/3803","repository_url":"https://api.github.com/repos/swagger-api/swagger-ui","labels_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/3803/labels{/name}","comments_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/3803/comments","events_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/3803/events","html_url":"https://github.com/swagger-api/swagger-ui/issues/3803","id":267661179,"number":3803,"title":"Multiple responses using oneOf attribute do not appear in UI","user":{"login":"danr1979","id":4936852,"avatar_url":"https://avatars1.githubusercontent.com/u/4936852?v=4","gravatar_id":"","url":"https://api.github.com/users/danr1979","html_url":"https://github.com/danr1979","followers_url":"https://api.github.com/users/danr1979/followers","following_url":"https://api.github.com/users/danr1979/following{/other_user}","gists_url":"https://api.github.com/users/danr1979/gists{/gist_id}","starred_url":"https://api.github.com/users/danr1979/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danr1979/subscriptions","organizations_url":"https://api.github.com/users/danr1979/orgs","repos_url":"https://api.github.com/users/danr1979/repos","events_url":"https://api.github.com/users/danr1979/events{/privacy}","received_events_url":"https://api.github.com/users/danr1979/received_events","type":"User","site_admin":false},"labels":[{"id":606048208,"url":"https://api.github.com/repos/swagger-api/swagger-ui/labels/OAS%203.0","name":"OAS 3.0","color":"006b75","default":false},{"id":46110685,"url":"https://api.github.com/repos/swagger-api/swagger-ui/labels/type:%20feature","name":"type: feature","color":"009800","default":false},{"id":565243947,"url":"https://api.github.com/repos/swagger-api/swagger-ui/labels/version:%203.x","name":"version: 3.x","color":"f9f375","default":false}],"state":"open","locked":false,"assignee":{"login":"shockey","id":680248,"avatar_url":"https://avatars2.githubusercontent.com/u/680248?v=4","gravatar_id":"","url":"https://api.github.com/users/shockey","html_url":"https://github.com/shockey","followers_url":"https://api.github.com/users/shockey/followers","following_url":"https://api.github.com/users/shockey/following{/other_user}","gists_url":"https://api.github.com/users/shockey/gists{/gist_id}","starred_url":"https://api.github.com/users/shockey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shockey/subscriptions","organizations_url":"https://api.github.com/users/shockey/orgs","repos_url":"https://api.github.com/users/shockey/repos","events_url":"https://api.github.com/users/shockey/events{/privacy}","received_events_url":"https://api.github.com/users/shockey/received_events","type":"User","site_admin":false},"assignees":[{"login":"shockey","id":680248,"avatar_url":"https://avatars2.githubusercontent.com/u/680248?v=4","gravatar_id":"","url":"https://api.github.com/users/shockey","html_url":"https://github.com/shockey","followers_url":"https://api.github.com/users/shockey/followers","following_url":"https://api.github.com/users/shockey/following{/other_user}","gists_url":"https://api.github.com/users/shockey/gists{/gist_id}","starred_url":"https://api.github.com/users/shockey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shockey/subscriptions","organizations_url":"https://api.github.com/users/shockey/orgs","repos_url":"https://api.github.com/users/shockey/repos","events_url":"https://api.github.com/users/shockey/events{/privacy}","received_events_url":"https://api.github.com/users/shockey/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/swagger-api/swagger-ui/milestones/27","html_url":"https://github.com/swagger-api/swagger-ui/milestone/27","labels_url":"https://api.github.com/repos/swagger-api/swagger-ui/milestones/27/labels","id":2957395,"number":27,"title":"December 8, 2017","description":"","creator":{"login":"shockey","id":680248,"avatar_url":"https://avatars2.githubusercontent.com/u/680248?v=4","gravatar_id":"","url":"https://api.github.com/users/shockey","html_url":"https://github.com/shockey","followers_url":"https://api.github.com/users/shockey/followers","following_url":"https://api.github.com/users/shockey/following{/other_user}","gists_url":"https://api.github.com/users/shockey/gists{/gist_id}","starred_url":"https://api.github.com/users/shockey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shockey/subscriptions","organizations_url":"https://api.github.com/users/shockey/orgs","repos_url":"https://api.github.com/users/shockey/repos","events_url":"https://api.github.com/users/shockey/events{/privacy}","received_events_url":"https://api.github.com/users/shockey/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":9,"state":"open","created_at":"2017-12-04T19:09:26Z","updated_at":"2017-12-16T01:26:32Z","due_on":null,"closed_at":null},"comments":24,"created_at":"2017-10-23T13:08:32Z","updated_at":"2018-03-01T23:27:36Z","closed_at":null,"author_association":"NONE","body":"<!---\r\nThanks for filing an issue 😄 ! Before you submit, please read the following:\r\n\r\nSearch open/closed issues before submitting since someone might have asked the same thing before!\r\n\r\nIssues on GitHub are only related to problems of Swagger-UI itself. We'll try to offer support\r\nhere for your use case, but we can't offer help with projects that use Swagger-UI indirectly,\r\nlike Springfox or swagger-node.\r\n\r\nLikewise, we can't accept features or bugs in the Swagger/OpenAPI specifications themselves,\r\nor anything that violates the specifications.\r\n\r\n-->\r\n\r\n<!--- Provide a general summary of the issue in the title above -->\r\n\r\n<!--- \r\n  If you aren't sure what Swagger-UI version, see this guide: https://github.com/swagger-api/swagger-ui/blob/master/docs/version-detection.md\r\n--->\r\n\r\n\r\n| Q                               | A\r\n| ------------------------------- | -------\r\n| Bug or feature request?         |  Bug\r\n| Which Swagger/OpenAPI version?  |\r\n| Which Swagger-UI version?       |\r\n| How did you install Swagger-UI? | \r\n| Which browser & version?        |\r\n| Which operating system?         | \r\n\r\n\r\n### Demonstration API definition\r\n<!--- If you're describing a bug, please provide an API definition that reproduces your problem -->\r\n<!--- If you have link to a demo repo please link that! -->\r\n\r\n<!--- If your spec is large, please put it into a Gist (https://gist.github.com) instead of pasting it here. -->\r\n\r\n```yaml\r\nresponses:\r\n  '200':\r\n    description: OK\r\n    content:\r\n      application/json:\r\n        schema:\r\n          oneOf:\r\n            - $ref: '#/components/schemas/AuthorisationResponse'\r\n            - $ref: '#/components/schemas/ForbiddenResponse'\r\n```\r\n\r\n### Configuration (browser query string, constructor, config.yaml)\r\n<!--- If describing a bug, tell us what your configuration looks like -->\r\n\r\n```js\r\nconstructorConfig contains just the default values.\r\n```\r\n### Expected Behavior\r\nSince I have two schemas passed in as a $ref to the 200 response I would expect to see two schemas in the Swagger UI application.  \r\n\r\n### Current Behavior\r\nInstead I see only the reference to the 200 response and its description with no example responses displayed as JSON in the black boxes.\r\n\r\n### Possible Solution\r\n<!--- Not obligatory, but suggest a fix/reason for the bug, -->\r\n<!--- or ideas how to implement the addition or change -->\r\n\r\n### Context\r\n<!--- How has this issue affected you? What are you trying to accomplish? -->\r\n<!--- Providing context helps us come up with a solution that is most useful in the real world -->\r\n"},"comment":{"url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/comments/369767570","html_url":"https://github.com/swagger-api/swagger-ui/issues/3803#issuecomment-369767570","issue_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/3803","id":369767570,"user":{"login":"mikefidel","id":20869677,"avatar_url":"https://avatars0.githubusercontent.com/u/20869677?v=4","gravatar_id":"","url":"https://api.github.com/users/mikefidel","html_url":"https://github.com/mikefidel","followers_url":"https://api.github.com/users/mikefidel/followers","following_url":"https://api.github.com/users/mikefidel/following{/other_user}","gists_url":"https://api.github.com/users/mikefidel/gists{/gist_id}","starred_url":"https://api.github.com/users/mikefidel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikefidel/subscriptions","organizations_url":"https://api.github.com/users/mikefidel/orgs","repos_url":"https://api.github.com/users/mikefidel/repos","events_url":"https://api.github.com/users/mikefidel/events{/privacy}","received_events_url":"https://api.github.com/users/mikefidel/received_events","type":"User","site_admin":false},"created_at":"2018-03-01T23:27:36Z","updated_at":"2018-03-01T23:27:36Z","author_association":"CONTRIBUTOR","body":"The internet has been down all day due to a storm, and frankly I need a couple days to think through the problem.  The eventual answer needs to cover oneOf and anyOf.  It's possible that there exists schema that has nested oneOf and/or anyOf's -- that certainly makes the processing and UI exquisitely nasty.  I need another day or two to think through and answer your simple question, @webron.  I agree with @mgranciano's response and I suspect it is adequate for the lion's share of cases.  However, I have not thought through the problem well enough to believe it works well when oneOf and/or anyOf's are nested at all depths of recursion.  I'm new to React and Redux, but from what little I've learned it seems to be well suited to dealing with this sort of problem.  Will get back to you in a couple days."}}
{"actor":{"display_login":"mikefidel"}}