Skip to content

Commit

Permalink
Merge pull request #83 from BruceCham/master
Browse files Browse the repository at this point in the history
feat: formdata type adjust the logic
  • Loading branch information
gogoyqj committed Feb 4, 2024
2 parents edaf071 + 016ddb4 commit 0e07054
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 0e07054

Please sign in to comment.