I'm using an openapi validator (express-openapi-validator
) in my Node.js project and can't figure out how to control the order of the paths matched.
If I have 2 paths such as,
/foo/{type}
parameters:
- name: type
schema:
type: string
enum: ['bar', 'bam']
and
/foo/bar
For a request to /foo/bar
, the second path is always matched.
How do I control the precedence of this match?