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

Bad error message on incorrect path provided #77

Open AlexisTonneau opened 2 years ago

AlexisTonneau commented 2 years ago

I used a path foo/bar instead of /foo/bar and CLI returned an error with message: #/paths must NOT have additional properties. That seems very confusing.

On Swagger editor, the provided error message is

Structural error at paths
should only have path names that start with\`/`
,which seems way better.