Skip to content

Commit 4d4d38e

Browse files
committed
rename x-rust-operation-generic-parameter to x-rust-generic-parameter
1 parent b6fde07 commit 4d4d38e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

openapi-generator-template/reqwest/api.mustache

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,14 +92,14 @@ pub enum {{{operationIdCamelCase}}}Error {
9292
/// {{{.}}}
9393
{{/notes}}
9494
{{#vendorExtensions.x-group-parameters}}
95-
pub {{#supportAsync}}async {{/supportAsync}}fn {{{operationId}}}{{{vendorExtensions.x-rust-operation-generic-parameter}}}(configuration: &configuration::Configuration{{#allParams}}{{#-first}}, {{!
95+
pub {{#supportAsync}}async {{/supportAsync}}fn {{{operationId}}}{{{vendorExtensions.x-rust-generic-parameter}}}(configuration: &configuration::Configuration{{#allParams}}{{#-first}}, {{!
9696
### Params
9797
}}params: {{{operationIdCamelCase}}}Params{{/-first}}{{/allParams}}{{!
9898
### Function return type
9999
}}) -> Result<{{#vendorExtensions.x-rust-return-type}}{{{.}}}{{/vendorExtensions.x-rust-return-type}}{{^vendorExtensions.x-rust-return-type}}{{#isResponseFile}}{{#supportAsync}}reqwest::Response{{/supportAsync}}{{^supportAsync}}reqwest::blocking::Response{{/supportAsync}}{{/isResponseFile}}{{^isResponseFile}}{{#supportMultipleResponses}}ResponseContent<{{{operationIdCamelCase}}}Success>{{/supportMultipleResponses}}{{^supportMultipleResponses}}{{^returnType}}(){{/returnType}}{{{returnType}}}{{/supportMultipleResponses}}{{/isResponseFile}}{{/vendorExtensions.x-rust-return-type}}, Error<{{{operationIdCamelCase}}}Error>> {
100100
{{/vendorExtensions.x-group-parameters}}
101101
{{^vendorExtensions.x-group-parameters}}
102-
pub {{#supportAsync}}async {{/supportAsync}}fn {{{operationId}}}{{{vendorExtensions.x-rust-operation-generic-parameter}}}(configuration: &configuration::Configuration, {{#allParams}}{{{paramName}}}: {{!
102+
pub {{#supportAsync}}async {{/supportAsync}}fn {{{operationId}}}{{{vendorExtensions.x-rust-generic-parameter}}}(configuration: &configuration::Configuration, {{#allParams}}{{{paramName}}}: {{!
103103
### Option Start
104104
}}{{^required}}Option<{{/required}}{{#required}}{{#isNullable}}Option<{{/isNullable}}{{/required}}{{!
105105
### &str and Vec<&str>

openapi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ paths:
429429
summary: Search for documents in a collection
430430
description: Search for documents in a collection that match the search criteria.
431431
operationId: searchCollection
432-
x-rust-operation-generic-parameter: "<D: for<'de> serde::Deserialize<'de> + Serialize>"
432+
x-rust-generic-parameter: "<D: for<'de> serde::Deserialize<'de> + Serialize>"
433433
x-rust-return-type: "models::SearchResult<D>"
434434
parameters:
435435
- name: collectionName

preprocessed_openapi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ paths:
405405
summary: Search for documents in a collection
406406
description: Search for documents in a collection that match the search criteria.
407407
operationId: searchCollection
408-
x-rust-operation-generic-parameter: '<D: for<''de> serde::Deserialize<''de> + Serialize>'
408+
x-rust-generic-parameter: '<D: for<''de> serde::Deserialize<''de> + Serialize>'
409409
x-rust-return-type: models::SearchResult<D>
410410
parameters:
411411
- name: collectionName

0 commit comments

Comments
 (0)