fix for #663
This commit is contained in:
4
dist/lib/swagger-client.js
vendored
4
dist/lib/swagger-client.js
vendored
@@ -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')
|
||||
|
||||
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user