app/assets/javascripts/lib/swagger.js in swagger-ui_rails-0.1.6 vs app/assets/javascripts/lib/swagger.js in swagger-ui_rails-0.1.7
- old
+ new
@@ -596,10 +596,10 @@
}
}
SwaggerModelProperty.prototype.getSampleValue = function(modelsToIgnore) {
var result;
- if ((this.refModel != null) && (modelsToIgnore[this.refModel.name] === 'undefined')) {
+ if ((this.refModel != null) && (modelsToIgnore[this.refModel.name] === undefined)) {
result = this.refModel.createJSONSample(modelsToIgnore);
} else {
if (this.isCollection) {
result = this.toSampleValue(this.refDataType);
} else {
\ No newline at end of file