openapi-core icon indicating copy to clipboard operation
openapi-core copied to clipboard

request body in DELETE ?

Open sarangsbabu367 opened this issue 4 years ago • 3 comments

Does openapi support request-body for DELETE request ?.
I am getting None after validation.

sarangsbabu367 avatar Apr 22 '20 10:04 sarangsbabu367

@sarangsbabu367 It vary integration you use. The lib itself doesn't retrieve request body just process it. Do you get request body before validation?

p1c2u avatar Apr 23 '20 10:04 p1c2u

@p1c2u Yes i am getting. But i think there is some issue with path eventhough my path is of form /users/{id}/relationships/accounts, when i tried to log the path. I got path as /users/{id} and in template i got remaining part separated.

sarangsbabu367 avatar Apr 23 '20 12:04 sarangsbabu367

It can be related to this issue then

You can try my prepared fix for this.

p1c2u avatar Apr 23 '20 12:04 p1c2u