From 0758c0aebfe266c119dfe596745c9d1fb8acd31b Mon Sep 17 00:00:00 2001 From: Karl von Randow Date: Thu, 22 Aug 2024 15:07:27 +1200 Subject: [PATCH] java-jaxrs-server: Add operation group tags --- .changeset/fifty-colts-laugh.md | 5 +++++ packages/java-jaxrs-server/templates/api.hbs | 3 +++ 2 files changed, 8 insertions(+) create mode 100644 .changeset/fifty-colts-laugh.md 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}}