Skip to content

Commit 932c047

Browse files
fix: update axum generated multipart requests to own the Multipart or Body
Notes: &Multipart cannot access fields, as we need mutable access.
1 parent 0aaeb45 commit 932c047

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • modules/openapi-generator/src/main/resources/rust-axum

modules/openapi-generator/src/main/resources/rust-axum/apis.mustache

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,10 @@ pub trait {{classnamePascalCase}}<E: std::fmt::Debug + Send + Sync + 'static = (
6868
{{/x-consumes-multipart}}
6969
{{/x-consumes-multipart-related}}
7070
{{#x-consumes-multipart}}
71-
body: &Multipart,
71+
body: Multipart,
7272
{{/x-consumes-multipart}}
7373
{{#x-consumes-multipart-related}}
74-
body: &axum::body::Body,
74+
body: axum::body::Body,
7575
{{/x-consumes-multipart-related}}
7676
) -> Result<{{{operationId}}}Response, E>;
7777
{{/vendorExtensions}}

0 commit comments

Comments
 (0)