diff options
Diffstat (limited to 'generator/src')
-rw-r--r-- | generator/src/methods.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/generator/src/methods.rs b/generator/src/methods.rs index 141fc7d..1f3f697 100644 --- a/generator/src/methods.rs +++ b/generator/src/methods.rs @@ -379,10 +379,7 @@ fn create_method_request( } } ParameterIn::FormData { param: _ } => { - if !body_method.is_empty() { - eyre::bail!("cannot have more than one body parameter"); - } - body_method = format!(".multipart(reqwest::multipart::Form::new().part(\"attachment\", reqwest::multipart::Part::bytes({name}).file_name(\"file\").mime_str(\"*/*\").unwrap()))"); + body_method += &format!(".multipart(reqwest::multipart::Form::new().part(\"attachment\", reqwest::multipart::Part::bytes({name}).file_name(\"file\").mime_str(\"*/*\").unwrap()))"); } } } |