diff --git a/dist/lib/swagger.js b/dist/lib/swagger.js index c6f0cd37..92af8df3 100644 --- a/dist/lib/swagger.js +++ b/dist/lib/swagger.js @@ -403,7 +403,20 @@ if (this.isCollection) { result = this.refDataType; } else { - result = this.dataType; + if(this.dataType === 'int'){ + result = 0; + + }else if(this.dataType === 'long' || this.dataType === 'float'){ + result = parseFloat("0.1"); + } + else if(this.dataType === 'boolean') + { + result = false; + } + else + { + result = this.dataType; + } } } if (this.isCollection) {