summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--generator/src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/generator/src/main.rs b/generator/src/main.rs
index 49e540f..67e44aa 100644
--- a/generator/src/main.rs
+++ b/generator/src/main.rs
@@ -433,7 +433,7 @@ fn create_method_request(
if param_is_string(spec, param)? {
body_method = format!(".body({name})");
} else {
- body_method = format!(".json({name})?");
+ body_method = format!(".json(&{name})");
}
}
ParameterIn::FormData => {