Skip to content

Commit bb8181d

Browse files
committed
Update
1 parent 024b29a commit bb8181d

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

modules/openapi-generator/src/main/resources/rust-axum/apis.mustache

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ pub trait {{classnamePascalCase}}Authorization {
2424
type Claims;
2525
2626
{{#operation}}
27-
{{#havingAuthMethod}}
27+
{{#vendorExtensions}}
28+
{{#x-has-auth-methods}}
2829
{{#havingAuthorization}}
2930
{{#vendorExtensions}}
3031
/// Authorization{{#summary}} - {{{.}}}{{/summary}}.
@@ -74,7 +75,8 @@ pub trait {{classnamePascalCase}}Authorization {
7475
}
7576
{{/vendorExtensions}}
7677
{{/havingAuthorization}}
77-
{{/havingAuthMethod}}
78+
{{/x-has-auth-methods}}
79+
{{/vendorExtensions}}
7880
{{^-last}}
7981

8082
{{/-last}}

modules/openapi-generator/src/main/resources/rust-axum/server-operation.mustache

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,8 @@ where
194194
};
195195
{{/disableValidator}}
196196

197-
{{#havingAuthMethod}}
197+
{{#vendorExtensions}}
198+
{{#x-has-auth-methods}}
198199
{{#havingAuthorization}}
199200
{{#vendorExtensions}}
200201
// Authorization
@@ -239,7 +240,8 @@ where
239240
}
240241
{{/vendorExtensions}}
241242
{{/havingAuthorization}}
242-
{{/havingAuthMethod}}
243+
{{/x-has-auth-methods}}
244+
{{/vendorExtensions}}
243245

244246
let result = api_impl.as_ref().{{#vendorExtensions}}{{{x-operation-id}}}{{/vendorExtensions}}(
245247
&method,

0 commit comments

Comments
 (0)