When the spec contains multiple path that matches a Request, the validator is executed on multiple definition.
shulard opened this issue · comments
Describe the bug
When the spec contains multiple paths that can match a given URL:
- paths:
/api/workstations/claimable
,/api/workstations/{workstation}
- url:
/api/workstations/claimable?param1=toto
The ResponseValidator
tries to validate the given response on multiple API operations which can leads to an error. We need to allow validating only one operation for each response.
Expected behavior
Use the "best" possible operation:
- full path match if it exists ;
- first operation that matches if it not?