We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Description:
According to OpenAPI specification v3 GET, DELETE and HEAD are no longer allowed to have request body because it does not have defined semantics as per RFC 7231. Not validating the GET request with request body is an issue found in the swagger parser we are using in Ballerina OpenAPI tool.
Issue has added at swagger-api/swagger-parser on this regard.
Throw an error when GET/DELETE/HEAD operation with request body found.
Steps to reproduce:
Affected Versions:
OS, DB, other environment details and versions:
Related Issues (optional):
Suggested Labels (optional):
Suggested Assignees (optional):
The text was updated successfully, but these errors were encountered:
We can validate during the client code generation and throw a BallerinaOpenApiException. I will add a fix for this.
BallerinaOpenApiException
Sorry, something went wrong.
LakshanSS
No branches or pull requests
Description:
Problem
According to OpenAPI specification v3 GET, DELETE and HEAD are no longer allowed to have request body because it does not have defined semantics as per RFC 7231. Not validating the GET request with request body is an issue found in the swagger parser we are using in Ballerina OpenAPI tool.
Issue has added at swagger-api/swagger-parser on this regard.
Suggested solution
Throw an error when GET/DELETE/HEAD operation with request body found.
Steps to reproduce:
Affected Versions:
OS, DB, other environment details and versions:
Related Issues (optional):
Suggested Labels (optional):
Suggested Assignees (optional):
The text was updated successfully, but these errors were encountered: