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

"swagger: 2.0" is not recognized as a supported version field #39

Closed bvandenbogaard closed 6 years ago

bvandenbogaard commented 6 years ago

When specifying the version field, the viewer doesn't allow 2.0 without quotation:

swagger: 2.0 <-- triggers a "Unable to render this definition" swagger: "2.0" <-- works

Both are valid Swagger syntax.

arjun-g commented 6 years ago

I don't think so. As per the specification this should be a string - https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#fixed-fields