Skip to content
This repository has been archived by the owner on Sep 14, 2022. It is now read-only.

Bug: deep models are not displayed #85

Closed
catasoft opened this issue Dec 12, 2013 · 3 comments
Closed

Bug: deep models are not displayed #85

catasoft opened this issue Dec 12, 2013 · 3 comments

Comments

@catasoft
Copy link

I have a deep model structure. Working with MongoDb, this in not uncommon.
If main model (present in responseClass) contains another type/array$ref:"subModel", which contains a type/array$ref:"subModel2", the subModel2 models will not be shown in the final api listing .json.
The "requestedModels" array is only added to in one pass, so if there appear subModels, they will not be added.
My solution was to add online 185 (in swagger.js) this line:

for(var i=0;i<=2;i++) {

and close this for in line 222.
Now all my models are displayed.

@catasoft
Copy link
Author

Anyone?

@fehguy
Copy link
Contributor

fehguy commented Dec 13, 2013

can you please put in a test case or sample? I don't see this behavior

@fehguy
Copy link
Contributor

fehguy commented Oct 31, 2014

I simply cannot reproduce this. Even the sample app has an example of nested models. If someone can provide a sample app, I'm happy to look into it.

@fehguy fehguy closed this as completed Oct 31, 2014
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

2 participants