I have started on using Swagger. At this point, I have received a swagger file for swagger version 1.2. However, if I want to generate something with this file, it just gives me a bunch of errors that look more like it just ignores the fact that my swagger file is in version 1.2 spec and just goes ahead and validates it against version 2.0 of the spec.
Some of the errors I got:
- Missing required property: paths
- Additional properties not allowed: models,apis,resourcePath,swaggerVersion,apiVersion
- ...
The last error tells me that apiVersion is unknown, although the gitHub page claims that the latest stable is supposed to be compatible with version 1.0, 1.1, 1.2 and 2.0. Is there a way that I can "force" the generator to think 1.2 spec instead of 2.0 spec?
I've verified with an official 1.2 spec yaml file too: https://raw.githubusercontent.com/swagger-api/swagger-codegen/v2.0.18/samples/yaml/pet.yml
But it gives the same errors when you load it in the Swagger editor: http://editor.swagger.io/#/