Skip to content

Lack of support for nested routes of the same resource #2 #164

@mojito317

Description

@mojito317

Which package are you using?
chai-openapi-response-validator

OpenAPI version
3

Describe the bug
Lack of support for routes like:

/:id1/:id2/:id3
/resource/:id/resource

To Reproduce
Prepare spec for ie:

/:id1/:id2/:id3
/resource/:id/new

and try to satisfyApiSpec against /resource/:id/new route.

Current behavior
For /resource/:id/new route it matches /:id1/:id2/:id3 and spec fails.

Expected behavior
If /resource/:id/new is being tested, it matches /resource/:id/new in the spec.
If /:id1/:id2/:id3 is being tested, it matches /:id1/:id2/:id3 in the spec.

Additional context
This issue is almost the same as #57. I commented with my problem under that thread too.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions