@midwayjs/swagger 3.3.6 → 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.
- package/dist/swaggerExplorer.js +7 -0
- package/package.json +2 -2
package/dist/swaggerExplorer.js
CHANGED
|
@@ -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.
|
|
3
|
+
"version": "3.3.8",
|
|
4
4
|
"main": "dist/index",
|
|
5
5
|
"typings": "index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -27,5 +27,5 @@
|
|
|
27
27
|
"type": "git",
|
|
28
28
|
"url": "https://github.com/midwayjs/midway.git"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "e2591f6b611a03b666e175bf4c8c9b4eca44be05"
|
|
31
31
|
}
|