File tree Expand file tree Collapse file tree
modules/openapi-generator/src/main/resources/rust-axum Expand file tree Collapse file tree Original file line number Diff line number Diff 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} }
Original file line number Diff line number Diff 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,
You can’t perform that action at this time.
0 commit comments