-
Notifications
You must be signed in to change notification settings - Fork 34
ReferenceError: properties is not defined #73
Comments
also, suggested on #swagger to try this swagger.json: http://petstore.swagger.io/v2/swagger.json? errors in a completely different area, but a lodash problem as well:
|
the same stack is seen with #70 (see https://travis-ci.org/krakenjs/generator-swaggerize/jobs/110177935). The issue happens because http://petstore.swagger.io/v2/swagger.json contains the following definition: Pets: {
type: "array",
items: {
$ref: "#/definitions/Pet"
}
}, this model is an array of another model the properties are defined in the I don't know this project well enough to fix the _model template. |
Published |
@subeeshcbabu I'm still getting the aforementioned
error. |
@Kitanotori - Can you share the version of the generator and the api file? |
Its the same Petstore schema - http://petstore.swagger.io/v2/swagger.json full stack:
|
I had to uninstall and In my local, I am able to scaffold the project from http://petstore.swagger.io/v2/swagger.json using |
I've not had any prior version installed. Reinstalling doesn't help. Please note that express generator works, but not hapi - my stack above is for hapi. |
ah that makes sense. The automates unit tests for |
I'm also getting this error and identified my case: Map:
type: object
additionalProperties:
type: string Since this object doesn't have "properties" it's failing. If I add "properties" it would work. |
Working on the version generator version 3 release which will address all these open issues and implement missing features from Swagger 2.0 spec. - https://github.com/krakenjs/generator-swaggerize/milestones/v3.0.0. Yes. the model generator should skip if no Upcoming generator release is going to replace the model concept with |
Please check the latest version |
running
on the petstore-simple.json interface (https://raw.githubusercontent.com/OAI/OpenAPI-Specification/master/examples/v2.0/json/petstore-simple.json)
does not run on my local machine, or other servers I tried.
I get a lodash error
Upgrading lodash to version 3 doesn't fix this -- nor does updating the package Yeoman Generator to latest (0.22.5). ( I thought that might help..)
Strange?
The text was updated successfully, but these errors were encountered: