kogosoftwarellc / open-api

A Monorepo of various packages to power OpenAPI in node
MIT License
892 stars 235 forks source link

Route matching doesn't seem to work properly #735

Open eurostar-fennec-cooper opened 3 years ago

eurostar-fennec-cooper commented 3 years ago

In swagger express, does it follow OpenAPI spec 2.0 as pointed out in the docs included in this repo? Or does it implement OpenAPI spec 3.0 (https://swagger.io/specification/) which states "the concrete definition will be matched first if used".

We have found that routes that are included /api-docs and ones we have defined /health are being ignored in favour of /{id}.