summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCyborus <cyborus@cyborus.xyz>2024-01-17 00:20:17 +0100
committerCyborus <cyborus@cyborus.xyz>2024-01-17 00:20:17 +0100
commitf8bbf570e178f67b5e206e9f7720a1f8c8787006 (patch)
treee755da05fed4052440e911da473c301ea5757b7e
parentonly check 200 responses for if optional (diff)
downloadforgejo-api-f8bbf570e178f67b5e206e9f7720a1f8c8787006.tar.xz
forgejo-api-f8bbf570e178f67b5e206e9f7720a1f8c8787006.zip
`RequestBuilder::json` takes reference, doesn't return result
-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 => {