arjun-g / vs-swagger-viewer

Swagger Viewer lets you preview and validate Swagger 2.0 and OpenAPI files as you type in Visual Studio Code.
MIT License
170 stars 47 forks source link

Validator is too aggressive #47

Closed hendrix04 closed 4 years ago

hendrix04 commented 5 years ago

The swagger validator attempts to validate any json file with a top level key of swagger even if it isn't a swagger file. This leads to problems popping up in the problem list when they shouldn't.

jmcdo29 commented 5 years ago

Same problem as hendrix04, my package.json in a node.js project is being validated by the validator and is showing a problem even though this is not a valid swagger file at all. Can we do something about this?

varshard commented 5 years ago

It also did the same with yml files as well.

kazazor commented 5 years ago

To me it's happening on yml file even if the top level key does not belong to the OAS.

This is really annoying :/

arjun-g commented 4 years ago

Fixed in 3.0.0.