This part:
if (_.isUndefined(model) || _.indexOf([undefined, 'array', 'object'], model.definition.type) === -1) {
// Use referenced schema
cProperty = helpers.resolveSchema(model.definition);
}
is obviously incorrect, since if model is undefined, then model.definition cannot be evaluated.
Simply negating the expression causes some sort of infinite loop, however, freezing the browser, so the issue is probably more complicated than that.
This issue currently breaks Swagger-UI for me.
This part:
is obviously incorrect, since if
modelis undefined, thenmodel.definitioncannot be evaluated.Simply negating the expression causes some sort of infinite loop, however, freezing the browser, so the issue is probably more complicated than that.
This issue currently breaks Swagger-UI for me.