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

Unexpected fields validation #17

Open
kibertoad opened this issue Sep 23, 2017 · 1 comment
Open

Unexpected fields validation #17

kibertoad opened this issue Sep 23, 2017 · 1 comment

Comments

@kibertoad
Copy link

Currently swagger-routes silently accepts unsupported fields. It would be useful to be able to enable enforcement of only defined fields to be present.

@kibertoad
Copy link
Author

Actually, it is already supported by using JSON schema property
"additionalProperties": false

Not sure if it would be worth to mention that fact in swagger-route documentation, given that it is standard, but non-obvious JSON schema feature.

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