You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run command spectral lint spectral-path-param-issue.yaml
Expected behavior
Since, verbs are different for each endpoint, I shouldn't receive an error.
Screenshots
Environment
Library version: 6.14.2
OS: Windows 10 Enterprise
Findings
After I debugged the library, I found oasPathParam is not considering different verbs when its looking for uniquePaths here.
Additional context
I found same issue has reported to swagger-editor here: swagger-api/swagger-editor#1677 and they have fixed it.
I can see, swagger editor is working fine now with my OpenAPI file.
The text was updated successfully, but these errors were encountered:
The Bug
My OpenAPI file has 2 endpoint paths with different path + verb combination as below.
When I validate the OpenAPI file using spectral, I receive policy rule fail from OpenAPI Rule 'path-params' with below error.
Paths "/path/{id}" and "/path/{source}" must not be equivalent.
To Reproduce
cd spectral-path-param-issue
spectral lint spectral-path-param-issue.yaml
Expected behavior
Since, verbs are different for each endpoint, I shouldn't receive an error.
Screenshots
Environment
Findings
After I debugged the library, I found
oasPathParam
is not considering different verbs when its looking for uniquePaths here.Additional context
I found same issue has reported to swagger-editor here: swagger-api/swagger-editor#1677 and they have fixed it.
I can see, swagger editor is working fine now with my OpenAPI file.
The text was updated successfully, but these errors were encountered: