Open ngoctranfire opened 7 years ago
resolve({definitions: root},...
JSON Ref API has changed.
I tried that and the same thing happens where my results are still not resolved correctly.
Also, adding that resolve({definitions: root}), causes it add an outer definitions
that I don't need/want.
@mohsen1 I don't really understand your comment above. I'm running into the exact same issue, where opening a swagger project from the generated json
file gives the error:
options.definition must be either an object or a string
I also get that same error when trying to load the json
file that is generated by this project.
This issue in swagger-editor appears to be the same problem.
Taking a look above, this is the resolved, using the following code: