File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 } ) ;
Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments