Merge branch 'master' of git://github.com/sibblegp/swagger-ui into sibblegp-master
This commit is contained in:
15
dist/lib/swagger.js
vendored
15
dist/lib/swagger.js
vendored
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user