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

Additional query parameter validation #984

Open
josepmdc opened this issue Jul 15, 2024 · 0 comments
Open

Additional query parameter validation #984

josepmdc opened this issue Jul 15, 2024 · 0 comments

Comments

@josepmdc
Copy link

Is there any way to validate that no extra query parameters other than the ones defined in the spec are sent? I've been looking at the docs and through the source code and haven't found anything.

The OpenAPI spec has no property to specify this but maybe it'd be interesting to have it as an option in the library.

Example of other libraries that support it: https://cdimascio.github.io/express-openapi-validator-documentation/faq/#q-i-can-disallow-unknown-query-parameters-with-allowunknownqueryparameters-false-how-can-disallow-unknown-body-parameters

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