Skip to content

Conversation

CynanX
Copy link
Contributor

@CynanX CynanX commented Sep 25, 2025

When a the specification does not specify a request body but one is included the validation currently passes.

This change will reject the request.

An example use case is when validating a DELETE request where you do not expect a body.

@CynanX CynanX force-pushed the master branch 3 times, most recently from 70fbd7b to 08e38e5 Compare September 27, 2025 09:04
@CynanX CynanX changed the title Reject requests with body when non expected openapi3filter: Reject requests with body when non expected (issue 1100) Sep 27, 2025
@CynanX
Copy link
Contributor Author

CynanX commented Sep 27, 2025

@fenollp Hi. I believe this solves issue 1100. I'm not sure of the protocol to get this reviewed? I couldn't see a contributing guide so forgive me if I've not done this correctly. Thank you for you time.

@fenollp fenollp merged commit 2ac6346 into getkin:master Oct 20, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DELETE request with body not rejected

2 participants