api-macros: Fix (de)serialization of newtype bodies

This commit is contained in:
Jonas Platte 2021-08-16 22:16:45 +02:00
parent 1541f2957b
commit eab96c7808
No known key found for this signature in database
GPG Key ID: CC154DE0E30B7C67

View File

@ -427,7 +427,7 @@ impl TryFrom<Field> for RequestField {
field_kind = Some(match meta {
Meta::Word(ident) => match &ident.to_string()[..] {
"body" => RequestFieldKind::Body,
"body" => RequestFieldKind::NewtypeBody,
"raw_body" => RequestFieldKind::NewtypeRawBody,
"path" => RequestFieldKind::Path,
"query" => RequestFieldKind::Query,