Skip to content
This repository has been archived by the owner on Oct 17, 2024. It is now read-only.

TypeError: Cannot read property 'length' of undefined #7

Open
bendavis78 opened this issue Jan 12, 2016 · 3 comments
Open

TypeError: Cannot read property 'length' of undefined #7

bendavis78 opened this issue Jan 12, 2016 · 3 comments

Comments

@bendavis78
Copy link

I'm getting this error:

$ fetch-swagger-schema http://petstore.swagger.io/v2/swagger.json petstore.json
[TypeError: Cannot read property 'length' of undefined]
@patcon
Copy link

patcon commented Jan 17, 2016

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 :)

@lindenle
Copy link

I am getting the same thing. Node swagger express is using 2.0 now.

@patcon
Copy link

patcon commented Jan 21, 2016

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: signalfx/swagger-client-generator#12

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants