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

[BUG] - OpenAPI 3.0 - fix mandatory validation for get body #43

Closed
omer182 opened this issue Feb 18, 2019 · 1 comment
Closed

[BUG] - OpenAPI 3.0 - fix mandatory validation for get body #43

omer182 opened this issue Feb 18, 2019 · 1 comment

Comments

@omer182
Copy link

omer182 commented Feb 18, 2019

Every GET request in openAPI 3 is being validated for its requestBody. therefore the validator fails when trying to validate the requestBody of a get request which is undefined.\

line failing:
const bodySchemaV3 = dereferenced.paths[currentPath][currentMethod].requestBody.content['application/json'].schema;

@omer182 omer182 changed the title BUG] - OpenAPI 3.0 - fix mandatory validation for get body [BUG] - OpenAPI 3.0 - fix mandatory validation for get body Feb 18, 2019
@idanto
Copy link
Contributor

idanto commented Feb 24, 2019

resolved #44

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants