Skip to content

Commit 41a421b

Browse files
committed
fix
1 parent 2f63cc2 commit 41a421b

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

progenitor-impl/src/cli.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,8 @@ impl Generator {
470470
// are currently...
471471
OperationParameterType::RawBody => None,
472472

473-
OperationParameterType::Type(body_type_id) => {
473+
OperationParameterType::Type(body_type_id)
474+
| OperationParameterType::Form(body_type_id) => {
474475
Some(body_type_id)
475476
}
476477
});

progenitor-impl/src/httpmock.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,8 @@ impl Generator {
164164
name, typ, kind, ..
165165
}| {
166166
let arg_type_name = match typ {
167-
OperationParameterType::Type(arg_type_id) => self
167+
OperationParameterType::Type(arg_type_id)
168+
| OperationParameterType::Form(arg_type_id) => self
168169
.type_space
169170
.get_type(arg_type_id)
170171
.unwrap()
@@ -245,9 +246,9 @@ impl Generator {
245246
OperationParameterKind::Header(_) => quote! { todo!() },
246247
OperationParameterKind::Body(body_content_type) => {
247248
match typ {
248-
OperationParameterType::Type(_) => quote! {
249+
OperationParameterType::Type(_)
250+
| OperationParameterType::Form(_) => quote! {
249251
Self(self.0.json_body_obj(value))
250-
251252
},
252253
OperationParameterType::RawBody => {
253254
match body_content_type {

0 commit comments

Comments
 (0)