@@ -269,7 +269,7 @@ pub async fn add_pet(configuration: &configuration::Configuration, params: AddPe
269
269
if let Some ( ref token) = configuration. oauth_access_token {
270
270
req_builder = req_builder. bearer_auth ( token. to_owned ( ) ) ;
271
271
} ;
272
- req_builder = req_builder. json ( & params. pet ) ;
272
+ req_builder = req_builder. json ( & params. body_pet ) ;
273
273
274
274
let req = req_builder. build ( ) ?;
275
275
let resp = configuration. client . execute ( req) . await ?;
@@ -290,13 +290,13 @@ pub async fn add_pet(configuration: &configuration::Configuration, params: AddPe
290
290
///
291
291
pub async fn delete_pet ( configuration : & configuration:: Configuration , params : DeletePetParams ) -> Result < ResponseContent < DeletePetSuccess > , Error < DeletePetError > > {
292
292
293
- let uri_str = format ! ( "{}/pet/{petId}" , configuration. base_path, petId=params. pet_id ) ;
293
+ let uri_str = format ! ( "{}/pet/{petId}" , configuration. base_path, petId=params. path_pet_id ) ;
294
294
let mut req_builder = configuration. client . request ( reqwest:: Method :: DELETE , & uri_str) ;
295
295
296
296
if let Some ( ref user_agent) = configuration. user_agent {
297
297
req_builder = req_builder. header ( reqwest:: header:: USER_AGENT , user_agent. clone ( ) ) ;
298
298
}
299
- if let Some ( param_value) = params. api_key {
299
+ if let Some ( param_value) = params. header_api_key {
300
300
req_builder = req_builder. header ( "api_key" , param_value. to_string ( ) ) ;
301
301
}
302
302
if let Some ( ref token) = configuration. oauth_access_token {
@@ -326,10 +326,10 @@ pub async fn find_pets_by_status(configuration: &configuration::Configuration, p
326
326
let mut req_builder = configuration. client . request ( reqwest:: Method :: GET , & uri_str) ;
327
327
328
328
req_builder = match "csv" {
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 ( ) ) ] ) ,
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 ( ) ) ] ) ,
331
331
} ;
332
- if let Some ( ref param_value) = params. r #type {
332
+ if let Some ( ref param_value) = params. query_r #type {
333
333
req_builder = match "csv" {
334
334
"multi" => req_builder. query ( & param_value. into_iter ( ) . map ( |p| ( "type" . to_owned ( ) , p. to_string ( ) ) ) . collect :: < Vec < ( std:: string:: String , std:: string:: String ) > > ( ) ) ,
335
335
_ => 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
365
365
let mut req_builder = configuration. client . request ( reqwest:: Method :: GET , & uri_str) ;
366
366
367
367
req_builder = match "csv" {
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 ( ) ) ] ) ,
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 ( ) ) ] ) ,
370
370
} ;
371
371
if let Some ( ref user_agent) = configuration. user_agent {
372
372
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
394
394
/// Returns a single pet
395
395
pub async fn get_pet_by_id ( configuration : & configuration:: Configuration , params : GetPetByIdParams ) -> Result < ResponseContent < GetPetByIdSuccess > , Error < GetPetByIdError > > {
396
396
397
- let uri_str = format ! ( "{}/pet/{petId}" , configuration. base_path, petId=params. pet_id ) ;
397
+ let uri_str = format ! ( "{}/pet/{petId}" , configuration. base_path, petId=params. path_pet_id ) ;
398
398
let mut req_builder = configuration. client . request ( reqwest:: Method :: GET , & uri_str) ;
399
399
400
400
if let Some ( ref user_agent) = configuration. user_agent {
@@ -431,7 +431,7 @@ pub async fn pets_explode_post(configuration: &configuration::Configuration, par
431
431
let uri_str = format ! ( "{}/pets/explode" , configuration. base_path) ;
432
432
let mut req_builder = configuration. client . request ( reqwest:: Method :: POST , & uri_str) ;
433
433
434
- if let Some ( ref param_value) = params. page_explode {
434
+ if let Some ( ref param_value) = params. query_page_explode {
435
435
req_builder = req_builder. query ( & param_value) ;
436
436
}
437
437
if let Some ( ref user_agent) = configuration. user_agent {
@@ -460,7 +460,7 @@ pub async fn pets_post(configuration: &configuration::Configuration, params: Pet
460
460
let uri_str = format ! ( "{}/pets" , configuration. base_path) ;
461
461
let mut req_builder = configuration. client . request ( reqwest:: Method :: POST , & uri_str) ;
462
462
463
- if let Some ( ref param_value) = params. page {
463
+ if let Some ( ref param_value) = params. query_page {
464
464
req_builder = req_builder. query ( & [ ( "page" , & serde_json:: to_string ( param_value) ?) ] ) ;
465
465
}
466
466
if let Some ( ref user_agent) = configuration. user_agent {
@@ -495,7 +495,7 @@ pub async fn update_pet(configuration: &configuration::Configuration, params: Up
495
495
if let Some ( ref token) = configuration. oauth_access_token {
496
496
req_builder = req_builder. bearer_auth ( token. to_owned ( ) ) ;
497
497
} ;
498
- req_builder = req_builder. json ( & params. pet ) ;
498
+ req_builder = req_builder. json ( & params. body_pet ) ;
499
499
500
500
let req = req_builder. build ( ) ?;
501
501
let resp = configuration. client . execute ( req) . await ?;
@@ -516,7 +516,7 @@ pub async fn update_pet(configuration: &configuration::Configuration, params: Up
516
516
///
517
517
pub async fn update_pet_with_form ( configuration : & configuration:: Configuration , params : UpdatePetWithFormParams ) -> Result < ResponseContent < UpdatePetWithFormSuccess > , Error < UpdatePetWithFormError > > {
518
518
519
- let uri_str = format ! ( "{}/pet/{petId}" , configuration. base_path, petId=params. pet_id ) ;
519
+ let uri_str = format ! ( "{}/pet/{petId}" , configuration. base_path, petId=params. path_pet_id ) ;
520
520
let mut req_builder = configuration. client . request ( reqwest:: Method :: POST , & uri_str) ;
521
521
522
522
if let Some ( ref user_agent) = configuration. user_agent {
@@ -526,10 +526,10 @@ pub async fn update_pet_with_form(configuration: &configuration::Configuration,
526
526
req_builder = req_builder. bearer_auth ( token. to_owned ( ) ) ;
527
527
} ;
528
528
let mut multipart_form_params = std:: collections:: HashMap :: new ( ) ;
529
- if let Some ( param_value) = params. name {
529
+ if let Some ( param_value) = params. form_name {
530
530
multipart_form_params. insert ( "name" , param_value. to_string ( ) ) ;
531
531
}
532
- if let Some ( param_value) = params. status {
532
+ if let Some ( param_value) = params. form_status {
533
533
multipart_form_params. insert ( "status" , param_value. to_string ( ) ) ;
534
534
}
535
535
req_builder = req_builder. form ( & multipart_form_params) ;
@@ -553,7 +553,7 @@ pub async fn update_pet_with_form(configuration: &configuration::Configuration,
553
553
///
554
554
pub async fn upload_file ( configuration : & configuration:: Configuration , params : UploadFileParams ) -> Result < ResponseContent < UploadFileSuccess > , Error < UploadFileError > > {
555
555
556
- let uri_str = format ! ( "{}/pet/{petId}/uploadImage" , configuration. base_path, petId=params. pet_id ) ;
556
+ let uri_str = format ! ( "{}/pet/{petId}/uploadImage" , configuration. base_path, petId=params. path_pet_id ) ;
557
557
let mut req_builder = configuration. client . request ( reqwest:: Method :: POST , & uri_str) ;
558
558
559
559
if let Some ( ref user_agent) = configuration. user_agent {
@@ -563,7 +563,7 @@ pub async fn upload_file(configuration: &configuration::Configuration, params: U
563
563
req_builder = req_builder. bearer_auth ( token. to_owned ( ) ) ;
564
564
} ;
565
565
let mut multipart_form = reqwest:: multipart:: Form :: new ( ) ;
566
- if let Some ( param_value) = params. additional_metadata {
566
+ if let Some ( param_value) = params. form_additional_metadata {
567
567
multipart_form = multipart_form. text ( "additionalMetadata" , param_value. to_string ( ) ) ;
568
568
}
569
569
// TODO: support file upload for 'file' parameter
0 commit comments