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) {
|
if (this.isCollection) {
|
||||||
result = this.refDataType;
|
result = this.refDataType;
|
||||||
} else {
|
} 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) {
|
if (this.isCollection) {
|
||||||
|
|||||||
Reference in New Issue
Block a user