@midwayjs/swagger 3.14.10 → 3.14.12

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.
@@ -261,7 +261,11 @@ let SwaggerExplorer = class SwaggerExplorer {
261
261
  * {"key":"web:router_param","parameterIndex":0,"propertyName":"create","metadata":{"type":1,"propertyData":"createCatDto"}}]
262
262
  */
263
263
  // WEB_ROUTER_PARAM_KEY
264
- const args = routerArgs.filter(item => item.key === core_1.WEB_ROUTER_PARAM_KEY);
264
+ const args = routerArgs.filter(item => {
265
+ var _a;
266
+ return item.key === core_1.WEB_ROUTER_PARAM_KEY &&
267
+ ((_a = item === null || item === void 0 ? void 0 : item.metadata) === null || _a === void 0 ? void 0 : _a.type) !== core_1.RouteParamTypes.CUSTOM;
268
+ });
265
269
  const types = (0, core_1.getMethodParamTypes)(target, webRouter.method);
266
270
  const params = metaForMethods.filter(item => item.key === constants_1.DECORATORS.API_PARAMETERS &&
267
271
  item.propertyName === webRouter.method);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@midwayjs/swagger",
3
- "version": "3.14.10",
3
+ "version": "3.14.12",
4
4
  "main": "dist/index.js",
5
5
  "typings": "index.d.ts",
6
6
  "files": [
@@ -10,11 +10,11 @@
10
10
  "index.html"
11
11
  ],
12
12
  "devDependencies": {
13
- "@midwayjs/core": "^3.14.4",
14
- "@midwayjs/koa": "^3.14.7",
15
- "@midwayjs/mock": "^3.14.7",
16
- "@midwayjs/validate": "^3.14.10",
17
- "swagger-ui-dist": "4.19.1"
13
+ "@midwayjs/core": "^3.14.12",
14
+ "@midwayjs/koa": "^3.14.12",
15
+ "@midwayjs/mock": "^3.14.12",
16
+ "@midwayjs/validate": "^3.14.12",
17
+ "swagger-ui-dist": "5.11.3"
18
18
  },
19
19
  "author": "Kurten Chan <chinkurten@gmail.com>",
20
20
  "license": "MIT",
@@ -28,5 +28,5 @@
28
28
  "type": "git",
29
29
  "url": "https://github.com/midwayjs/midway.git"
30
30
  },
31
- "gitHead": "18045aafe8570139c6d0a38b959f8db12624ae2e"
31
+ "gitHead": "e6b0c2d35c4fb8dc05fe17fbc546a09a0b6c0486"
32
32
  }