Skip to content

Commit 40428a3

Browse files
committed
fixed inability to traverse models
1 parent 5235e55 commit 40428a3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/swagger.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/swagger.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ class SwaggerModel
429429
# modelsToIgnore is used to ensure that recursive references do not lead to endless loop
430430
# and that the same model is not displayed multiple times
431431
for prop in @properties
432-
if(prop.refModel? and (modelsToIgnore[prop.refModel] != 'undefined') == -1)
432+
if(prop.refModel? and modelsToIgnore.indexOf(prop.refModel) == -1)
433433
returnVal = returnVal + ('<br>' + prop.refModel.getMockSignature(modelsToIgnore))
434434

435435
returnVal

0 commit comments

Comments
 (0)