Skip to content

Commit

Permalink
feat: formdata type adjust the logic
Browse files Browse the repository at this point in the history
  • Loading branch information
zhanglitao committed Feb 4, 2024
1 parent edaf071 commit 016ddb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/yapi/yapi2swagger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 016ddb4

Please sign in to comment.