updated swagger-js to fix header

This commit is contained in:
Tony Tam
2015-02-02 08:55:56 -08:00
parent 5a32a88b0b
commit df10a9b22c
4 changed files with 280 additions and 276 deletions

View File

@@ -1,6 +1,6 @@
/**
* swagger-client - swagger.js is a javascript client for use with swaggering APIs.
* @version v2.1.0-alpha.7
* @version v2.1.0-M1
* @link http://swagger.io
* @license apache 2.0
*/
@@ -1301,6 +1301,8 @@ Property.prototype.sampleValue = function(isArray, ignoredModels) {
output = this.default;
else if(type === 'date-time')
output = new Date().toISOString();
else if(type === 'date')
output = new Date().toISOString().split("T")[0];
else if(type === 'string')
output = 'string';
else if(type === 'integer')