Showing results for 
Search instead for 
Did you mean: 
Welcome to the September Hub-bub

We are inviting you to join our exciting online event where you can learn a lot of useful information, share your knowledge and have fun. Each week, we will reward the best posters with free gift cards .

Just pick any topic you like in the SwaggerHub Community, or create your own to dive into the wonderful September Hub-bub.

Event duration: September 2-27. More information.

This Week Top Contributors:

We will decide the winners next Monday

Bug: "Delete operations cannot have a requestBody"

Occasional Contributor

Bug: "Delete operations cannot have a requestBody"

I'm using Swagger/OAS3 to document our existing API.  When I document the DELETE method in one endpoint I get the following message:

Delete operations cannot have  a requestBody

This endpoint uses the request body to pass a UserID, in the same way that our POST and PUT methods work.

This has been discussed elsewhere as a bug:

When will this be fixed or can the error be disabled.

Thank you.


Re: Bug: "Delete operations cannot have a requestBody"

OAS3 does not allow payloads for DELETE operations. Therefore, this is not a bug, and we won't be able to change the behavior of it unless the specification changes.

New Here?
Join us and watch the welcome video:
Watch the New Interview
Join the September Hub-bub to show off, learn and win