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
My OpenApi 3.0 yml opened on HTML page with swagger-ui-dist 5.11.0.
In one endpoint where request body absent, Execute run request and produces the following output:
Here in sources I found that swagger-api adds -d '' for POST requests with no request body.
Seems has no sense.
99.9% servers just ignore such case (empty but present data in CURL when no request body). But I faced with 0.01% where it has sense.
Is it possible to drop -d '' at all when no request body in POST-request?
The text was updated successfully, but these errors were encountered:
My OpenApi 3.0 yml opened on HTML page with swagger-ui-dist 5.11.0.
In one endpoint where request body absent, Execute run request and produces the following output:
Execute ends with errors.
The only valid form here without
-d
:Here in sources I found that swagger-api adds
-d ''
for POST requests with no request body.Seems has no sense.
99.9% servers just ignore such case (empty but present data in CURL when no request body). But I faced with 0.01% where it has sense.
Is it possible to drop
-d ''
at all when no request body in POST-request?The text was updated successfully, but these errors were encountered: