Merge branch 'master' of git://github.com/sibblegp/swagger-ui into sibblegp-master

This commit is contained in:
Tony Tam
2013-05-30 01:32:36 -07:00

15
dist/lib/swagger.js vendored
View File

@@ -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) {