From 49e73f36ec94f5e891fb7acd910e8d3f086705e1 Mon Sep 17 00:00:00 2001 From: loulin Date: Tue, 1 Mar 2022 09:27:14 +0800 Subject: [PATCH] feat(openapi): support hook customTypeName --- packages/plugin-openapi/src/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/plugin-openapi/src/index.ts b/packages/plugin-openapi/src/index.ts index 1da49b00..30c720c5 100644 --- a/packages/plugin-openapi/src/index.ts +++ b/packages/plugin-openapi/src/index.ts @@ -20,6 +20,7 @@ export default (api: IApi) => { hook: joi.object({ customFunctionName: joi.function(), customClassName: joi.function(), + customTypeName: joi.function(), }), }); return joi.alternatives(joi.array().items(itemSchema), itemSchema);