Skip to content

Commit

Permalink
feat: only generate the formData mutator if the operation body includ…
Browse files Browse the repository at this point in the history
…es formData information (#1178)
  • Loading branch information
KaHLK committed Jan 24, 2024
1 parent a11e821 commit 48a1b6e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/core/src/generators/verbs-options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,8 @@ const generateVerbOptions = async ({
});

const formData =
isString(override?.formData) || isObject(override?.formData)
(isString(override?.formData) || isObject(override?.formData)) &&
body.formData
? await generateMutator({
output: output.target,
name: operationName,
Expand Down

0 comments on commit 48a1b6e

Please sign in to comment.