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

Open API validation: additionalProperties ignored #254

Open
ricardo-snyk opened this issue Oct 14, 2022 · 0 comments
Open

Open API validation: additionalProperties ignored #254

ricardo-snyk opened this issue Oct 14, 2022 · 0 comments

Comments

@ricardo-snyk
Copy link

Just posting this here in case anyone else stumbles upon this. It relates to github.com/getkin/kin-openapi

We use additionalProperties: false for a field, however we still can pass additional properties as Open API validation won't complain.

That’s a known bug: getkin/kin-openapi#82
If additionalProperties: false is declared inside anyOf (we do this!) it’s not taken into account.

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