express-openapi-validator icon indicating copy to clipboard operation
express-openapi-validator copied to clipboard

MissingRefError: For routes that have been ignored

Open kewalkothari opened this issue 4 years ago • 1 comments

Describe the bug I'm encountering can't resolve reference #/components/schemas/<HIDDEN SCHEMA> from id

This happens because I have multiple validator for multiple specs. I encounter this issue even if I have marked ignoreUndocumented: true and also ignorePaths this issue only stops if I disable validatingRequests.

While debugging I noticed that the library entertains the path even if it was supposed to be ignored by one of the validator middlewares.

I cannot post my swagger file due to security reasons but it is valid as per https://editor.swagger.io/ which I can confirm.

kewalkothari avatar Sep 15 '21 16:09 kewalkothari

@kewalkothari could you provide a small canonical snippet that exhibits the issue. if you can go a step further and provide a reproducible example via a github that will be immensely helpful

cdimascio avatar Sep 23 '21 00:09 cdimascio