You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There doesn't seem to be a way to avoid sending a request body in case it's optional.
Describe the solution you'd like
I would love to have a way to disable the request body field in order to not to send it when the request body is optional.
Maybe a check box could be added (enabled by default) so clicking it would disable the textarea. No body would be sent in this case.
Describe alternatives you've considered
Almost any other way to allow not no send a request body in case an endpoint has an optional request body would be good enough.
Content & configuration
Swagger/OpenAPI definition:
Swagger-Editor configuration options:
// Not relevant
Is your feature request related to a problem?
There doesn't seem to be a way to avoid sending a request body in case it's optional.
Describe the solution you'd like
I would love to have a way to disable the request body field in order to not to send it when the request body is optional.
Maybe a check box could be added (enabled by default) so clicking it would disable the textarea. No body would be sent in this case.
Describe alternatives you've considered
Almost any other way to allow not no send a request body in case an endpoint has an optional request body would be good enough.
Additional context
https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#request-body-object
The text was updated successfully, but these errors were encountered: