Closed dcolens closed 8 years ago
It should. It sounds like something is missing in your api spec. This shouldn't error, but that's why it is choking.
Maybe it was not obvious but the example above is not "my API spec" it is the example from the swaggerize homepage: https://raw.githubusercontent.com/wordnik/swagger-spec/master/examples/v2.0/json/petstore.json
Also note I tried with the latest node 0.12 and 4.x and they both fail in the same manner.
I think this is related to the issue resolved by this PR - https://github.com/krakenjs/generator-swaggerize/pull/70
Pets: { type: "array", items: { $ref: "#/definitions/Pet" } },
The current generator version was lacking support for models with schema type array
. This change is yet to get published.
Also one more point to note is that, the current version of generator expects the definition
to have the properties
and lack support for external $ref
- https://github.com/krakenjs/generator-swaggerize/issues/61
Travis seems to have the same issue: https://travis-ci.org/krakenjs/generator-swaggerize/jobs/110153740