forked from loafle/openapi-generator-original
[R][Client] fix brackets for httr2 file_params (#18142)
* fix brackets for httr2 file_params * added additional braces to baseName of httr2 file_params
This commit is contained in:
parent
bf2a251dd6
commit
bcd0bc5de8
@ -515,7 +515,7 @@
|
||||
file_params["{{baseName}}"] <- httr::upload_file(`{{paramName}}`)
|
||||
{{/isHttr2}}
|
||||
{{#isHttr2}}
|
||||
file_params["{{baseName}}"] <- curl::form_file(`{{paramName}}`)
|
||||
file_params[["{{{baseName}}}"]] <- curl::form_file(`{{paramName}}`)
|
||||
{{/isHttr2}}
|
||||
{{/isFile}}
|
||||
{{/formParams}}
|
||||
|
@ -1807,7 +1807,7 @@ PetApi <- R6::R6Class(
|
||||
|
||||
|
||||
form_params["additionalMetadata"] <- `additional_metadata`
|
||||
file_params["file"] <- curl::form_file(`file`)
|
||||
file_params[["file"]] <- curl::form_file(`file`)
|
||||
local_var_url_path <- "/pet/{petId}/uploadImage"
|
||||
if (!missing(`pet_id`)) {
|
||||
local_var_url_path <- gsub("\\{petId\\}", URLencode(as.character(`pet_id`), reserved = TRUE), local_var_url_path)
|
||||
|
@ -1807,7 +1807,7 @@ PetApi <- R6::R6Class(
|
||||
|
||||
|
||||
form_params["additionalMetadata"] <- `additional_metadata`
|
||||
file_params["file"] <- curl::form_file(`file`)
|
||||
file_params[["file"]] <- curl::form_file(`file`)
|
||||
local_var_url_path <- "/pet/{petId}/uploadImage"
|
||||
if (!missing(`pet_id`)) {
|
||||
local_var_url_path <- gsub("\\{petId\\}", URLencode(as.character(`pet_id`), reserved = TRUE), local_var_url_path)
|
||||
|
Loading…
x
Reference in New Issue
Block a user