openapi-library / OpenAPIValidators

Use Jest or Chai to assert that HTTP responses satisfy an OpenAPI spec
MIT License
189 stars 35 forks source link

fix: match paths containing array path parameters #255

Closed rwalle61 closed 2 years ago

rwalle61 commented 2 years ago

Fixes https://github.com/openapi-library/OpenAPIValidators/issues/250

Co-authored-by: Amit Keinan amit.keinan.9@gmail.com

Thanks to @amitkeinan9 for finding this solution in https://github.com/openapi-library/OpenAPIValidators/pull/252. I've raised this PR just to integrate the new tests with our existing tests (as I couldn't add any commits to your forked branch). I'll think about how to improve this process in future, so I can just add commits to your branch (as that gives you more credit).

codecov[bot] commented 2 years ago

Codecov Report

Merging #255 (a929519) into master (7b88d46) will not change coverage. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master      #255   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           17        17           
  Lines          421       422    +1     
  Branches        60        60           
=========================================
+ Hits           421       422    +1     
Impacted Files Coverage Δ
...ckages/openapi-validator/lib/utils/common.utils.ts 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 7b88d46...a929519. Read the comment docs.