Skip to content

Commit df10a9b

Browse files
committed
updated swagger-js to fix header
1 parent 5a32a88 commit df10a9b

File tree

4 files changed

+278
-274
lines changed

4 files changed

+278
-274
lines changed

dist/lib/swagger-client.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* swagger-client - swagger.js is a javascript client for use with swaggering APIs.
3-
* @version v2.1.0-alpha.7
3+
* @version v2.1.0-M1
44
* @link http://swagger.io
55
* @license apache 2.0
66
*/
@@ -1301,6 +1301,8 @@ Property.prototype.sampleValue = function(isArray, ignoredModels) {
13011301
output = this.default;
13021302
else if(type === 'date-time')
13031303
output = new Date().toISOString();
1304+
else if(type === 'date')
1305+
output = new Date().toISOString().split("T")[0];
13041306
else if(type === 'string')
13051307
output = 'string';
13061308
else if(type === 'integer')

0 commit comments

Comments
 (0)