Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SwaggerUI doesn't render response bodies for non-200 responses #9556

Closed
glowcloud opened this issue Feb 7, 2024 · 1 comment
Closed

SwaggerUI doesn't render response bodies for non-200 responses #9556

glowcloud opened this issue Feb 7, 2024 · 1 comment
Assignees

Comments

@glowcloud
Copy link
Contributor

Describe the bug you're encountering

When using try it out for an endpoint that returns a response with non-200 status code, the response body is not rendered.

To reproduce...

Steps to reproduce the behavior:

  1. Start a server that would return response with a body and 400 status code for a certain endpoint
  2. Open Swagger Editor
  3. Add a spec for this server
  4. Send a request to the endpoint returning 400 response
  5. See error

Expected behavior

Renders a response body as it would for responses with 2XX status codes

@char0n
Copy link
Member

char0n commented Feb 7, 2024

Addressed in #9555

@char0n char0n closed this as completed Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants