mohsen1 / multi-file-swagger-example

Multi-file Swagger example
http://azimi.me/2015/07/16/split-swagger-into-smaller-files.html
168 stars 39 forks source link

Couldn't generate neither Server nor client #12

Closed wal0x closed 7 years ago

wal0x commented 7 years ago

I've downloaded swagger-editor locally on my computer and I made a web api spec using YAML and splitting files. When I try to generate anything it gave me :

Code Generator Error

something bad happened

Details:

Object code: 500 type: "unknown" message: "something bad happened"

I am sure that the splitting cause this error because when I put everything in the same file everything works fine, any clue ?

wal0x commented 7 years ago

I had to run resolve.js nothig complecated :smile:

But I think it will be nice if it was specified: 1- to install all the dependencies from package.json via npm install 2- launch resolve with node resolve.js (after changing the file name inside resolve.js to match the file name to resolve)

Cheers,