toSatisfyApiSpec
doesn't recognize :
in path that is not a parameter
#286
Labels
bug
Something isn't working
Are you using jest or chai?
jest
Are you using OpenAPI 2, 3.0.X, or 3.1.0?
3.0.3
Describe the bug clearly
When having a path that contains a hard-coded
:
in it (that does not signify a parameter)toSatisfyApiSpec
still treats it as a parameter and ignores the text after the:
. that causes a mixup between different paths.Steps to reproduce the bug:
:
. for examplePOST /api/{prefix}/example:one
POST /api/{prefix}/example:two
toSatisfyApiSpec
See full example in my branch - https://github.com/aradbar/OpenAPIValidators/blob/bug-report-1/packages/jest-openapi/__test__/colonInUrlBug.test.ts
What did you expect to happen instead?
toSatisfyApiSpec
to be able to differentiate between the two pathsAre you going to resolve the issue?
The text was updated successfully, but these errors were encountered: