C
C#2y ago
.tree

❔ Swagger file Error "Can't have Request Body in GET"

I created a REST Api in an ASP.NET API Project. There I have a controller with a few GET methods. When I take the swagger JSON file and paste it into the swagger editor I get errors on some GET methods "GET operations cannot have a requestBody.". I didn't specify a request body in any way. Since the swagger file was created by swagger, why did it put a request body there if there shouldn't be on in a GET method? Or is there another reason the request body is there?
1 Reply
Accord
Accord2y ago
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.