@@ -269,7 +269,7 @@ pub async fn add_pet(configuration: &configuration::Configuration, params: AddPe
269269 if let Some ( ref token) = configuration. oauth_access_token {
270270 req_builder = req_builder. bearer_auth ( token. to_owned ( ) ) ;
271271 } ;
272- req_builder = req_builder. json ( & params. body_pet ) ;
272+ req_builder = req_builder. json ( & params. pet ) ;
273273
274274 let req = req_builder. build ( ) ?;
275275 let resp = configuration. client . execute ( req) . await ?;
@@ -290,13 +290,13 @@ pub async fn add_pet(configuration: &configuration::Configuration, params: AddPe
290290///
291291pub async fn delete_pet ( configuration : & configuration:: Configuration , params : DeletePetParams ) -> Result < ResponseContent < DeletePetSuccess > , Error < DeletePetError > > {
292292
293- let uri_str = format ! ( "{}/pet/{petId}" , configuration. base_path, petId=params. path_pet_id ) ;
293+ let uri_str = format ! ( "{}/pet/{petId}" , configuration. base_path, petId=params. pet_id ) ;
294294 let mut req_builder = configuration. client . request ( reqwest:: Method :: DELETE , & uri_str) ;
295295
296296 if let Some ( ref user_agent) = configuration. user_agent {
297297 req_builder = req_builder. header ( reqwest:: header:: USER_AGENT , user_agent. clone ( ) ) ;
298298 }
299- if let Some ( param_value) = params. header_api_key {
299+ if let Some ( param_value) = params. api_key {
300300 req_builder = req_builder. header ( "api_key" , param_value. to_string ( ) ) ;
301301 }
302302 if let Some ( ref token) = configuration. oauth_access_token {
@@ -326,10 +326,10 @@ pub async fn find_pets_by_status(configuration: &configuration::Configuration, p
326326 let mut req_builder = configuration. client . request ( reqwest:: Method :: GET , & uri_str) ;
327327
328328 req_builder = match "csv" {
329- "multi" => req_builder. query ( & params. query_status . into_iter ( ) . map ( |p| ( "status" . to_owned ( ) , p. to_string ( ) ) ) . collect :: < Vec < ( std:: string:: String , std:: string:: String ) > > ( ) ) ,
330- _ => req_builder. query ( & [ ( "status" , & params. query_status . into_iter ( ) . map ( |p| p. to_string ( ) ) . collect :: < Vec < String > > ( ) . join ( "," ) . to_string ( ) ) ] ) ,
329+ "multi" => req_builder. query ( & params. status . into_iter ( ) . map ( |p| ( "status" . to_owned ( ) , p. to_string ( ) ) ) . collect :: < Vec < ( std:: string:: String , std:: string:: String ) > > ( ) ) ,
330+ _ => req_builder. query ( & [ ( "status" , & params. status . into_iter ( ) . map ( |p| p. to_string ( ) ) . collect :: < Vec < String > > ( ) . join ( "," ) . to_string ( ) ) ] ) ,
331331 } ;
332- if let Some ( ref param_value) = params. query_r #type {
332+ if let Some ( ref param_value) = params. r #type {
333333 req_builder = match "csv" {
334334 "multi" => req_builder. query ( & param_value. into_iter ( ) . map ( |p| ( "type" . to_owned ( ) , p. to_string ( ) ) ) . collect :: < Vec < ( std:: string:: String , std:: string:: String ) > > ( ) ) ,
335335 _ => req_builder. query ( & [ ( "type" , & param_value. into_iter ( ) . map ( |p| p. to_string ( ) ) . collect :: < Vec < String > > ( ) . join ( "," ) . to_string ( ) ) ] ) ,
@@ -365,8 +365,8 @@ pub async fn find_pets_by_tags(configuration: &configuration::Configuration, par
365365 let mut req_builder = configuration. client . request ( reqwest:: Method :: GET , & uri_str) ;
366366
367367 req_builder = match "csv" {
368- "multi" => req_builder. query ( & params. query_tags . into_iter ( ) . map ( |p| ( "tags" . to_owned ( ) , p. to_string ( ) ) ) . collect :: < Vec < ( std:: string:: String , std:: string:: String ) > > ( ) ) ,
369- _ => req_builder. query ( & [ ( "tags" , & params. query_tags . into_iter ( ) . map ( |p| p. to_string ( ) ) . collect :: < Vec < String > > ( ) . join ( "," ) . to_string ( ) ) ] ) ,
368+ "multi" => req_builder. query ( & params. tags . into_iter ( ) . map ( |p| ( "tags" . to_owned ( ) , p. to_string ( ) ) ) . collect :: < Vec < ( std:: string:: String , std:: string:: String ) > > ( ) ) ,
369+ _ => req_builder. query ( & [ ( "tags" , & params. tags . into_iter ( ) . map ( |p| p. to_string ( ) ) . collect :: < Vec < String > > ( ) . join ( "," ) . to_string ( ) ) ] ) ,
370370 } ;
371371 if let Some ( ref user_agent) = configuration. user_agent {
372372 req_builder = req_builder. header ( reqwest:: header:: USER_AGENT , user_agent. clone ( ) ) ;
@@ -394,7 +394,7 @@ pub async fn find_pets_by_tags(configuration: &configuration::Configuration, par
394394/// Returns a single pet
395395pub async fn get_pet_by_id ( configuration : & configuration:: Configuration , params : GetPetByIdParams ) -> Result < ResponseContent < GetPetByIdSuccess > , Error < GetPetByIdError > > {
396396
397- let uri_str = format ! ( "{}/pet/{petId}" , configuration. base_path, petId=params. path_pet_id ) ;
397+ let uri_str = format ! ( "{}/pet/{petId}" , configuration. base_path, petId=params. pet_id ) ;
398398 let mut req_builder = configuration. client . request ( reqwest:: Method :: GET , & uri_str) ;
399399
400400 if let Some ( ref user_agent) = configuration. user_agent {
@@ -431,7 +431,7 @@ pub async fn pets_explode_post(configuration: &configuration::Configuration, par
431431 let uri_str = format ! ( "{}/pets/explode" , configuration. base_path) ;
432432 let mut req_builder = configuration. client . request ( reqwest:: Method :: POST , & uri_str) ;
433433
434- if let Some ( ref param_value) = params. query_page_explode {
434+ if let Some ( ref param_value) = params. page_explode {
435435 req_builder = req_builder. query ( & param_value) ;
436436 }
437437 if let Some ( ref user_agent) = configuration. user_agent {
@@ -460,7 +460,7 @@ pub async fn pets_post(configuration: &configuration::Configuration, params: Pet
460460 let uri_str = format ! ( "{}/pets" , configuration. base_path) ;
461461 let mut req_builder = configuration. client . request ( reqwest:: Method :: POST , & uri_str) ;
462462
463- if let Some ( ref param_value) = params. query_page {
463+ if let Some ( ref param_value) = params. page {
464464 req_builder = req_builder. query ( & [ ( "page" , & serde_json:: to_string ( param_value) ?) ] ) ;
465465 }
466466 if let Some ( ref user_agent) = configuration. user_agent {
@@ -495,7 +495,7 @@ pub async fn update_pet(configuration: &configuration::Configuration, params: Up
495495 if let Some ( ref token) = configuration. oauth_access_token {
496496 req_builder = req_builder. bearer_auth ( token. to_owned ( ) ) ;
497497 } ;
498- req_builder = req_builder. json ( & params. body_pet ) ;
498+ req_builder = req_builder. json ( & params. pet ) ;
499499
500500 let req = req_builder. build ( ) ?;
501501 let resp = configuration. client . execute ( req) . await ?;
@@ -516,7 +516,7 @@ pub async fn update_pet(configuration: &configuration::Configuration, params: Up
516516///
517517pub async fn update_pet_with_form ( configuration : & configuration:: Configuration , params : UpdatePetWithFormParams ) -> Result < ResponseContent < UpdatePetWithFormSuccess > , Error < UpdatePetWithFormError > > {
518518
519- let uri_str = format ! ( "{}/pet/{petId}" , configuration. base_path, petId=params. path_pet_id ) ;
519+ let uri_str = format ! ( "{}/pet/{petId}" , configuration. base_path, petId=params. pet_id ) ;
520520 let mut req_builder = configuration. client . request ( reqwest:: Method :: POST , & uri_str) ;
521521
522522 if let Some ( ref user_agent) = configuration. user_agent {
@@ -526,10 +526,10 @@ pub async fn update_pet_with_form(configuration: &configuration::Configuration,
526526 req_builder = req_builder. bearer_auth ( token. to_owned ( ) ) ;
527527 } ;
528528 let mut multipart_form_params = std:: collections:: HashMap :: new ( ) ;
529- if let Some ( param_value) = params. form_name {
529+ if let Some ( param_value) = params. name {
530530 multipart_form_params. insert ( "name" , param_value. to_string ( ) ) ;
531531 }
532- if let Some ( param_value) = params. form_status {
532+ if let Some ( param_value) = params. status {
533533 multipart_form_params. insert ( "status" , param_value. to_string ( ) ) ;
534534 }
535535 req_builder = req_builder. form ( & multipart_form_params) ;
@@ -553,7 +553,7 @@ pub async fn update_pet_with_form(configuration: &configuration::Configuration,
553553///
554554pub async fn upload_file ( configuration : & configuration:: Configuration , params : UploadFileParams ) -> Result < ResponseContent < UploadFileSuccess > , Error < UploadFileError > > {
555555
556- let uri_str = format ! ( "{}/pet/{petId}/uploadImage" , configuration. base_path, petId=params. path_pet_id ) ;
556+ let uri_str = format ! ( "{}/pet/{petId}/uploadImage" , configuration. base_path, petId=params. pet_id ) ;
557557 let mut req_builder = configuration. client . request ( reqwest:: Method :: POST , & uri_str) ;
558558
559559 if let Some ( ref user_agent) = configuration. user_agent {
@@ -563,7 +563,7 @@ pub async fn upload_file(configuration: &configuration::Configuration, params: U
563563 req_builder = req_builder. bearer_auth ( token. to_owned ( ) ) ;
564564 } ;
565565 let mut multipart_form = reqwest:: multipart:: Form :: new ( ) ;
566- if let Some ( param_value) = params. form_additional_metadata {
566+ if let Some ( param_value) = params. additional_metadata {
567567 multipart_form = multipart_form. text ( "additionalMetadata" , param_value. to_string ( ) ) ;
568568 }
569569 // TODO: support file upload for 'file' parameter
0 commit comments