cloudflare / chanfana

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

Parameters should always be an array #13

Closed gimenete closed 1 year ago

gimenete commented 1 year ago

When a route doesn't have parameters defined, the OpenAPI spec is returning an empty object. I think it should always return an array instead.