cdimascio / express-openapi-validator

🦋 Auto-validates api requests, responses, and securities using ExpressJS and an OpenAPI 3.x specification
MIT License
920 stars 211 forks source link

Update path-to-regexp to the latest version and refactor code for compatibility #979

Closed cvchauhan closed 2 months ago

cvchauhan commented 2 months ago

Summary: This pull request updates the path-to-regexp package to the latest version and refactors the code to be compatible with the new API changes. The changes ensure that all route matching, URL generation, and parsing work correctly with the updated library.

Changes Made:

  1. Updated path-to-regexp package to the latest version (v8.1.0).
  2. Refactored the following modules/files to accommodate breaking changes in the new version:
  3. Verified compatibility with existing features and ensured no regression issues.

Testing:

Impact: This update ensures future compatibility and takes advantage of performance improvements and bug fixes from the latest version of path-to-regexp.

Related Issues:

frankkeefer commented 2 months ago

Looks good. does it need a version bump for the next version?

cvchauhan commented 2 months ago

Already merge code with other PR