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

"string" example when response has no content #4390

Open
loganmzz opened this issue Aug 22, 2023 · 1 comment
Open

"string" example when response has no content #4390

loganmzz opened this issue Aug 22, 2023 · 1 comment

Comments

@loganmzz
Copy link

Q&A (please complete the following information)

  • OS: Windows 10
  • Browser: Google Chrome
  • Version: SaaS
  • Method of installation: SaaS
  • Swagger-Editor version: SaaS
  • Swagger/OpenAPI version: OpenAPI 3.1.0

Content & configuration

Example Swagger/OpenAPI definition:

openapi: "3.1.0"

info:
  version: 1.0.0
  title: '`"string"` example when response has no content'

paths:
  /:
    post:
      summary: Create
      responses:
        '201':
          description: Success

Describe the bug you're encountering

An example response content is generated while there's not

To reproduce...

See example above

Expected behavior

Remove associated block (same way when there is no request body)

Screenshots

image

Additional context or thoughts

N/C

@fizyk
Copy link

fizyk commented Jan 16, 2024

Would this be rather swagger-ui issue swagger-api/swagger-ui#9199 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants