@midwayjs/swagger 3.3.4 → 3.3.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -578,6 +578,13 @@ let SwaggerExplorer = class SwaggerExplorer {
578
578
  type: (0, decorator_1.getPropertyType)(clzz.prototype, key).name,
579
579
  format: metadata === null || metadata === void 0 ? void 0 : metadata.format,
580
580
  };
581
+ // Date 类型支持
582
+ if (tt.properties[key].type === 'Date') {
583
+ tt.properties[key].type = 'string';
584
+ if (!tt.properties[key].format) {
585
+ tt.properties[key].format = 'date';
586
+ }
587
+ }
581
588
  delete metadata.format;
582
589
  }
583
590
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@midwayjs/swagger",
3
- "version": "3.3.4",
3
+ "version": "3.3.8",
4
4
  "main": "dist/index",
5
5
  "typings": "index.d.ts",
6
6
  "files": [
@@ -9,10 +9,10 @@
9
9
  "index.d.ts"
10
10
  ],
11
11
  "devDependencies": {
12
- "@midwayjs/core": "^3.3.4",
12
+ "@midwayjs/core": "^3.3.5",
13
13
  "@midwayjs/decorator": "^3.3.4",
14
- "@midwayjs/koa": "^3.3.4",
15
- "@midwayjs/mock": "^3.3.4",
14
+ "@midwayjs/koa": "^3.3.6",
15
+ "@midwayjs/mock": "^3.3.5",
16
16
  "swagger-ui-dist": "4.6.2"
17
17
  },
18
18
  "author": "Kurten Chan <chinkurten@gmail.com>",
@@ -27,5 +27,5 @@
27
27
  "type": "git",
28
28
  "url": "https://github.com/midwayjs/midway.git"
29
29
  },
30
- "gitHead": "0c2785a87217f57a184a661c71b1d9562af02242"
30
+ "gitHead": "e2591f6b611a03b666e175bf4c8c9b4eca44be05"
31
31
  }