You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Swagger-Editor version: unclear (would be nice if the version was shown on the UI
Swagger/OpenAPI version: OpenAPI 3.1
Content & configuration
Example Swagger/OpenAPI definition:
openapi: 3.0.0 info:
title: I can haz delete with request bodyversion: 1.xpaths:
/test:
delete:
requestBody:
required: truecontent:
application/json:
schema:
type: object responses:
'204':
description: No Content
Describe the bug you're encountering
Semantic error at paths./test.delete.requestBody
DELETE operations cannot have a requestBody.
This is inaccurate, for OpenAPI 3.1.0:
In other cases where the HTTP spec is vague (such as GET, HEAD and DELETE), requestBody is permitted but does not have well-defined semantics and SHOULD be avoided if possible.
I also tried setting:
openapi: 3.1.0
But that did not work.
If this not a bug, and just a case of the 3.1.0 spec not being yet supported, apologies for creating this ticket.
Q&A (please complete the following information)
Content & configuration
Example Swagger/OpenAPI definition:
Describe the bug you're encountering
This is inaccurate, for OpenAPI 3.1.0:
I also tried setting:
But that did not work.
If this not a bug, and just a case of the 3.1.0 spec not being yet supported, apologies for creating this ticket.
To reproduce...
Steps to reproduce the behavior:
Expected behavior
No error message.
Additional context or thoughts
Cloned and update issue details from #1929 .
The text was updated successfully, but these errors were encountered: