swagger-editor
swagger-editor copied to clipboard
`"string"` example when response has no content
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
Additional context or thoughts
N/C
Would this be rather swagger-ui issue https://github.com/swagger-api/swagger-ui/issues/9199 ?