Skip to content

Commit

Permalink
Fix error conversions
Browse files Browse the repository at this point in the history
  • Loading branch information
sosthene-nitrokey committed Oct 29, 2024
1 parent 09fdb6d commit b45acce
Show file tree
Hide file tree
Showing 2 changed files with 249 additions and 0 deletions.
1 change: 1 addition & 0 deletions generator/src/main/resources/crust/reqwest/api.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ pub fn {{{operationId}}}(configuration: &configuration::Configuration, {{#allPar
let local_var_uri_str = format!("{}{{{path}}}", local_var_configuration.base_path{{#pathParams}}, {{{baseName}}}={{#isString}}crate::apis::urlencode({{/isString}}{{{paramName}}}{{^required}}.unwrap(){{/required}}{{#required}}{{#isNullable}}.unwrap(){{/isNullable}}{{/required}}{{#isArray}}.join(",").as_ref(){{/isArray}}{{#isString}}){{/isString}}{{/pathParams}});
let mut local_var_req_builder = create_request!(local_var_client, {{httpMethod}}, local_var_uri_str.as_str());
local_var_req_builder = local_var_req_builder.config().http_status_as_error(false).build();

{{#queryParams}}
{{#required}}
Expand Down
Loading

0 comments on commit b45acce

Please sign in to comment.