fetch-swagger-schema
fetch-swagger-schema copied to clipboard
TypeError: Cannot read property 'length' of undefined
I'm getting this error:
$ fetch-swagger-schema http://petstore.swagger.io/v2/swagger.json petstore.json
[TypeError: Cannot read property 'length' of undefined]
petstore upgraded to swagger 2.0 schema. most tools still generate 1.2, so it should work on your own (at least it did for my project with grape-swagger :)
I am getting the same thing. Node swagger express is using 2.0 now.
Ah, then this tool won't work for you @lindenle -- it's v1.2 only
I thought there was another ticket somewhere (where the tool suite author spoke of v2 plan), but this is the best I found: https://github.com/signalfx/swagger-client-generator/issues/12