cloudflare / chanfana

OpenAPI 3 and 3.1 schema generator and validator for Hono, itty-router and more!
https://chanfana.pages.dev
MIT License
302 stars 40 forks source link

raiseUnknownParameters raises error when query starts with sub delimiter #75

Closed juliangehring closed 1 year ago

juliangehring commented 1 year ago

The router currently returns a "400 Bad Request" error when:

Here an example based on the tutorial: http://server/api/list?&page=1&isCompleted=true which yields

"errors":{"":"is an unknown parameter"}

I would have thought that no such error would be raised in this case, since there is no unknown parameter (i.e. none).

G4brym commented 1 year ago

Hey there, I've just published the new v1.0.0 release fixes this issue Migration guide to 1.0.0 available here