APIDevTools / swagger-cli

Swagger 2.0 and OpenAPI 3.0 command-line tool
https://apitools.dev/swagger-cli
MIT License
515 stars 69 forks source link

it can't be validate if path parameters not defined #57

Open winterbesos opened 3 years ago

winterbesos commented 3 years ago

/some/api/{param}:

if this param is not be defined. the command swagger-cli validate api.yaml can't throw any errors.

stueynz commented 3 years ago

Also if the parameter is defined but not in: header it won't fail.

Note: to all - stand by - there will be a Pull Request soon.

brezniczky commented 2 years ago

Basically I think the command line tool could do with the validation in the editor

https://stackoverflow.com/questions/48174533/how-to-perform-online-swagger-editor-validation-in-a-command-line-tool