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

Cannot create property on string #11

Closed falico closed 8 years ago

falico commented 8 years ago

Hi,

I tried this approach of splitting everything, including "paths" and "definitions", but these two last steps didn't work. I don't know if I am missing something, but the library is handling the "$ref" attribute as string, and it fails. Here is what I am getting for "definitions" if I try to set it as a ref:

Cannot create property 'id' on string 'definitions/index.json'

Have you also faced this error before?

mohsen1 commented 8 years ago

JSON Refs has changed since this was created. Use the version I was using here. Look at package.json.

falico commented 8 years ago

thanks @mohsen1 ! Nice call :)