From 016ddb432f90c22179346154f38bfbe129df014d Mon Sep 17 00:00:00 2001 From: zhanglitao Date: Sun, 4 Feb 2024 11:15:47 +0800 Subject: [PATCH] feat: formdata type adjust the logic --- src/yapi/yapi2swagger.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/yapi/yapi2swagger.ts b/src/yapi/yapi2swagger.ts index dd09bcc..b47d2e6 100644 --- a/src/yapi/yapi2swagger.ts +++ b/src/yapi/yapi2swagger.ts @@ -153,7 +153,7 @@ export function convertParams(api: SyntheticAPI, yapiConfig: Autos.YAPIConfig) { in: 'formData', required: Number(p.required) === 1, description: p.desc, - type: p.type === 'text' ? 'string' : 'file' // in this time .formData type have only text or file + type: p.type !== 'file' ? 'string' : 'file' // in this time .formData type have only text or file }); } break;