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

Query parameters not being validated. #450

Open
murithigeo opened this issue Nov 28, 2023 · 1 comment
Open

Query parameters not being validated. #450

murithigeo opened this issue Nov 28, 2023 · 1 comment

Comments

@murithigeo
Copy link

So my project was working and now its not. The issue is that path parameters are validated against the spec document but query parameters are not being validated causing the exegesis functions to trigger regardless of whether the query is valid. Is it a bug that manifests randomly or what could be causing it?

@murithigeo
Copy link
Author

murithigeo commented Nov 28, 2023

When I log the parameters through context.params.query, all the parameters are undefined and yet the function is still triggered.
I have checked the docs and exegesis should return error 400 if undefined query params are requested and in this case, it is not. Weird.

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