-
-
Notifications
You must be signed in to change notification settings - Fork 226
Closed
Description
Describe the bug
Route like /some/(.*)
caused
TypeError: Unexpected ( at 9, expected END: https://git.new/pathToRegexpError
at Iter.consume (/project/node_modules/express-openapi-validator/node_modules/path-to-regexp/dist/index.js:123:15)
at consume (/project/node_modules/express-openapi-validator/node_modules/path-to-regexp/dist/index.js:179:16)
at parse (/project/node_modules/express-openapi-validator/node_modules/path-to-regexp/dist/index.js:183:20)
at /project/node_modules/express-openapi-validator/node_modules/path-to-regexp/dist/index.js:294:74
at Array.map (<anonymous>)
at pathToRegexp (/project/node_modules/express-openapi-validator/node_modules/path-to-regexp/dist/index.js:294:25)
at lookupRoute (/project/node_modules/express-openapi-validator/dist/middlewares/openapi.metadata.js:73:65)
at /project/node_modules/express-openapi-validator/dist/middlewares/openapi.metadata.js:17:25
at /project/node_modules/express-openapi-validator/dist/openapi.validator.js:126:24
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
starting from version 5.3.7
To Reproduce
add route to spec and go /some
/some/(.*):
get:
responses:
200:
description: OK
Actual behavior
Error
Expected behavior
Validation success
Metadata
Metadata
Assignees
Labels
No labels