swagger-editor icon indicating copy to clipboard operation
swagger-editor copied to clipboard

`"string"` example when response has no content

Open loganmzz opened this issue 10 months ago • 1 comments

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

loganmzz avatar Aug 22 '23 17:08 loganmzz

Would this be rather swagger-ui issue https://github.com/swagger-api/swagger-ui/issues/9199 ?

fizyk avatar Jan 16 '24 20:01 fizyk