exegesis-js / exegesis

Tools for implementing server-side OpenAPI 3.0.0

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Query parameters not being validated.

murithigeo opened this issue · comments

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?

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.