From c48cbd95f60b416bd7c2060708542f1368162636 Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 2 Nov 2018 03:41:09 +0900 Subject: [PATCH] Fix bug --- src/server/web/docs.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/server/web/docs.ts b/src/server/web/docs.ts index 003022bcf..1fd015779 100644 --- a/src/server/web/docs.ts +++ b/src/server/web/docs.ts @@ -61,11 +61,11 @@ async function genVars(lang: string): Promise<{ [key: string]: any }> { } // WIP type -const parseParamDefinition = (key: string, param: Context) => { +const parseParamDefinition = (key: string, x: any) => { return Object.assign({ name: key, - type: param.getType() - }, param.data); + type: x.validator.getType() + }, x); }; const parsePropDefinition = (key: string, prop: any) => {