@@ -83,8 +83,8 @@ public class {{classname}} {
8383 { {#useOas2} }
8484 @io.swagger.annotations.ApiOperation(value = "{ {{summary} }}", notes = "{ {{notes} }}", response = { {{returnBaseType} }}.class{ {#returnContainer} }, responseContainer = "{ {{returnContainer} }}"{ {/returnContainer} }{ {#hasAuthMethods} }, authorizations = {
8585 {{#authMethods} }@io.swagger.annotations.Authorization(value = "{ {name} }"{ {#isOAuth} }, scopes = {
86- {{#scopes} }@io.swagger.annotations.AuthorizationScope(scope = "{ {scope } }", description = "{ {description } }"){ {#hasMore } },
87- { {/hasMore } }{ {/scopes } }
86+ {{#each scopes} }@io.swagger.annotations.AuthorizationScope(scope = "{ {@key } }", description = "{ {this } }"){ {^@last } },
87+ { {/@last } }{ {/each } }
8888 }{ {/isOAuth} }){ {#hasMore} },
8989 { {/hasMore} }{ {/authMethods} }
9090 }{ {/hasAuthMethods} }, tags={ {{#vendorExtensions.x-tags} }"{ {tag} }",{ {/vendorExtensions.x-tags} } })
@@ -95,8 +95,8 @@ public class {{classname}} {
9595 { {^useOas2} }
9696 @Operation(summary = "{ {{summary} }}", description = "{ {{notes} }}"{ {#hasAuthMethods} }, security = {
9797 {{#authMethods} }@SecurityRequirement(name = "{ {name} }"{ {#isOAuth} }, scopes = {
98- {{#scopes} }"{ {scope } }"{ {#hasMore } },
99- { {/hasMore } }{ {/scopes } }
98+ {{#each scopes} }"{ {@key } }"{ {^@last } },
99+ { {/@last } }{ {/each } }
100100 }{ {/isOAuth} }){ {#hasMore} },
101101 { {/hasMore} }{ {/authMethods} }
102102 }{ {/hasAuthMethods} }, tags={ {{#vendorExtensions.x-tags} }"{ {tag} }"{ {#hasMore} }, { {/hasMore} }{ {/vendorExtensions.x-tags} } })
0 commit comments