From f8bbf570e178f67b5e206e9f7720a1f8c8787006 Mon Sep 17 00:00:00 2001 From: Cyborus Date: Tue, 16 Jan 2024 18:20:17 -0500 Subject: `RequestBuilder::json` takes reference, doesn't return result --- generator/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'generator/src/main.rs') 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 => { -- cgit v1.2.3