Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[OAS 3.1.0] Operation.requestBody now permitted for HTTP methods which don't allow a request body #591

Closed
Azquelt opened this issue Jan 19, 2024 · 2 comments · Fixed by #616
Assignees
Labels
OAS 3.1.0 All issues related to OpenAPI version 3.1.0 support

Comments

@Azquelt
Copy link
Member

Azquelt commented Jan 19, 2024

Operation.requestBody now allows a body to be provided even if the HTTP method of the operation doesn't support it (e.g. GET).

We may want to:

  • Update any relevant documentation
  • Add a test for a GET, HEAD and DELETE operations with a request body specified
@Azquelt Azquelt changed the title [OAS 3.1.0 [OAS 3.1.0] Operation.requestBody now permitted for HTTP methods which don't allow a request body Jan 19, 2024
@Azquelt Azquelt added the OAS 3.1.0 All issues related to OpenAPI version 3.1.0 support label Jan 19, 2024
@Azquelt Azquelt added this to the MP OpenAPI 4.0 milestone Jan 19, 2024
@Azquelt
Copy link
Member Author

Azquelt commented May 13, 2024

Can't see anywhere that we document the old restriction, so this just needs a new test.

@benjamin-confino
Copy link
Contributor

Please assign this to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OAS 3.1.0 All issues related to OpenAPI version 3.1.0 support
Projects
None yet
2 participants