diff --git a/packages/core/src/generators/verbs-options.ts b/packages/core/src/generators/verbs-options.ts index 320009b72..439a4998a 100644 --- a/packages/core/src/generators/verbs-options.ts +++ b/packages/core/src/generators/verbs-options.ts @@ -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,