New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not able to identify the missed path variables #911
Comments
Hi @parameshjava, Spec says as below: Spec doesn't specify about the reverse. Thanks, |
In such case, if we forgot to declare path parameter in resource path, still swagger-parser certifies that the json is well formed. But, when we keep this in swagger editor, it complains. I am not sure the difference in schema referred by online editor and swagger parser. It would be a great help, if we can achieve the validation same as online editor. |
Makes sense and I have raised a PR to fix this issue. Thanks, |
Hi @parameshjava We hope this PR have solved this issue. please let us know how it goes. thanks @ymohdriz |
Hi, @gracekarina @parameshjava @ymohdriz
Probably the analysis should happen after the resolver works. I think that this issue should be reopened or another one should be created. What's better? |
Hi,
It's showing a valid JSON though the path variables are missed to declare. We can find the error, if we keep the same JSON in editor.swagger.io.
Please find the below sample JSON:
To become a valid swagger json, we need to have the below in parameters list.
Swagger editor will report the below issue.
But, this library not able to identify this issue.
The text was updated successfully, but these errors were encountered: