File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -470,7 +470,8 @@ impl Generator {
470
470
// are currently...
471
471
OperationParameterType :: RawBody => None ,
472
472
473
- OperationParameterType :: Type ( body_type_id) => {
473
+ OperationParameterType :: Type ( body_type_id)
474
+ | OperationParameterType :: Form ( body_type_id) => {
474
475
Some ( body_type_id)
475
476
}
476
477
} ) ;
Original file line number Diff line number Diff line change @@ -164,7 +164,8 @@ impl Generator {
164
164
name, typ, kind, ..
165
165
} | {
166
166
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
168
169
. type_space
169
170
. get_type ( arg_type_id)
170
171
. unwrap ( )
@@ -245,9 +246,9 @@ impl Generator {
245
246
OperationParameterKind :: Header ( _) => quote ! { todo!( ) } ,
246
247
OperationParameterKind :: Body ( body_content_type) => {
247
248
match typ {
248
- OperationParameterType :: Type ( _) => quote ! {
249
+ OperationParameterType :: Type ( _)
250
+ | OperationParameterType :: Form ( _) => quote ! {
249
251
Self ( self . 0 . json_body_obj( value) )
250
-
251
252
} ,
252
253
OperationParameterType :: RawBody => {
253
254
match body_content_type {
You can’t perform that action at this time.
0 commit comments