diff --git a/.changeset/fifty-colts-laugh.md b/.changeset/fifty-colts-laugh.md new file mode 100644 index 00000000..6d50d814 --- /dev/null +++ b/.changeset/fifty-colts-laugh.md @@ -0,0 +1,5 @@ +--- +"@openapi-generator-plus/java-jaxrs-server-generator": minor +--- + +Add operation group tags diff --git a/packages/java-jaxrs-server/templates/api.hbs b/packages/java-jaxrs-server/templates/api.hbs index 3ba8c8d5..f781c0c1 100644 --- a/packages/java-jaxrs-server/templates/api.hbs +++ b/packages/java-jaxrs-server/templates/api.hbs @@ -9,6 +9,9 @@ package {{apiPackage}}; {{#if produces}} @{{javax}}.ws.rs.Produces({ {{#each produces}}"{{{.}}}"{{#unless @last}}, {{/unless}}{{/each}} }) {{/if}} +{{#each tags}} +@io.swagger.v3.oas.annotations.tags.Tag(name = {{{stringLiteral .}}}) +{{/each}} public interface {{className name}}Api { {{#each operations}}