Hilzu/express-openapi-validate

match() should throw if no matching validator is found

codeclown opened this issue · 0 comments

As per discussion in #63...

  • similarly to validate(), match() should throw an exception if the request doesn't match any spec in the OpenAPI Schema
  • and this behaviour should be toggleable via an option, e.g. match({ allowNoMatch: true })

This is a breaking change compared to current behaviour.