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

The "required" flag on "requestBody" is not managed #292

Open
esimonneau opened this issue Jan 17, 2022 · 0 comments
Open

The "required" flag on "requestBody" is not managed #292

esimonneau opened this issue Jan 17, 2022 · 0 comments

Comments

@esimonneau
Copy link

On "OpenAPI" documentation, we can read that the request body is not required by default but a "required" flag exists to make it mandatory :

image

But this field seems to be not managed and I saw that the body becomes required if "application/json" is the only specified format defined for the content
See validation.js

Could it be possible to add push "requestBody" on the required array only if the "required" flag is set to "true" on OpenAPI documentation ?

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

No branches or pull requests

1 participant