This commit is contained in:
Tony Tam
2014-10-18 15:57:09 -07:00
parent 4d1e48df39
commit 1738bf1272
2 changed files with 8 additions and 0 deletions

View File

@@ -631,6 +631,8 @@ Operation.prototype.getType = function (param) {
str = 'integer';
else if(type === 'integer' && format === 'int64')
str = 'long';
else if(type === 'integer' && typeof format === 'undefined')
str = 'long';
else if(type === 'string' && format === 'date-time')
str = 'date-time';
else if(type === 'string' && format === 'date')
@@ -639,6 +641,8 @@ Operation.prototype.getType = function (param) {
str = 'float';
else if(type === 'number' && format === 'double')
str = 'double';
else if(type === 'number' && typeof format === 'undefined')
str = 'double';
else if(type === 'boolean')
str = 'boolean';
else if(type === 'string')

View File

@@ -631,6 +631,8 @@ Operation.prototype.getType = function (param) {
str = 'integer';
else if(type === 'integer' && format === 'int64')
str = 'long';
else if(type === 'integer' && typeof format === 'undefined')
str = 'long';
else if(type === 'string' && format === 'date-time')
str = 'date-time';
else if(type === 'string' && format === 'date')
@@ -639,6 +641,8 @@ Operation.prototype.getType = function (param) {
str = 'float';
else if(type === 'number' && format === 'double')
str = 'double';
else if(type === 'number' && typeof format === 'undefined')
str = 'double';
else if(type === 'boolean')
str = 'boolean';
else if(type === 'string')