Request body can't be unset #145
Labels
bug
Something isn't working
feature
This is not a bug or issue. It is a request for a new feature
package: theme-openapi
Endpoints with a request body (optional or required) always have an example body prefilled. If this example is deleted, the body is still used in the request/sample code as an empty string.
cURL example on page load:
cURL example after deleting code prefilled in editor:
Expected:
Additional feature request:
Since we always provide an example body by default (even when body is optional), it might make sense to remove the
+ Show optional body
and just always show the editor (regardless of optional/required). I believe this would reduce some user confusion of where the body came from on requests where the body was optional.@simranbentel I think this feature would also fix your issue in #91. Let me know your thoughts 😊
The text was updated successfully, but these errors were encountered: