IssueRaiser

Multiple responses using oneOf attribute do not appear in UI

<!--- Thanks for filing an issue 😄 ! Before you submit, please read the following: Search open/closed issues before submitting since someone might have asked the same thing before! Issues on GitHub are only related to problems of Swagger-UI itself. We'll try to offer support here for your use case, but we can't offer help with projects that use Swagger-UI indirectly, like Springfox or swagger-node. Likewise, we can't accept features or bugs in the Swagger/OpenAPI specifications themselves, or anything that violates the specifications. --> <!--- Provide a general summary of the issue in the title above --> <!--- 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 ---> | Q | A | ------------------------------- | ------- | Bug or feature request? | Bug | Which Swagger/OpenAPI version? | | Which Swagger-UI version? | | How did you install Swagger-UI? | | Which browser & version? | | Which operating system? | ### Demonstration API definition <!--- If you're describing a bug, please provide an API definition that reproduces your problem --> <!--- If you have link to a demo repo please link that! --> <!--- If your spec is large, please put it into a Gist (https://gist.github.com) instead of pasting it here. --> ```yaml responses: '200': description: OK content: application/json: schema:

Posted by danr1979 on Oct 23, 2017, 1:08 PM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.4,500 issues0 comments

ux (Software)

Multiple responses using oneOf attribute do not appear in UI

danr1979Oct 23, 2017, 1:08 PM

<!--- Thanks for filing an issue 😄 ! Before you submit, please read the following: Search open/closed issues before submitting since someone might have asked the same thing before! Issues on GitHub are only related to problems of Swagger-UI itself. We'll try to offer support here for your use case, but we can't offer help with projects that use Swagger-UI indirectly, like Springfox or swagger-node. Likewise, we can't accept features or bugs in the Swagger/OpenAPI specifications themselves, or anything that violates the specifications. --> <!--- Provide a general summary of the issue in the title above --> <!--- 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 ---> | Q | A | ------------------------------- | ------- | Bug or feature request? | Bug | Which Swagger/OpenAPI version? | | Which Swagger-UI version? | | How did you install Swagger-UI? | | Which browser & version? | | Which operating system? | ### Demonstration API definition <!--- If you're describing a bug, please provide an API definition that reproduces your problem --> <!--- If you have link to a demo repo please link that! --> <!--- If your spec is large, please put it into a Gist (https://gist.github.com) instead of pasting it here. --> ```yaml responses: '200': description: OK content: application/json: schema:

Comments (0)

No comments yet. Start the discussion.

Comment on this issue