Skip to content

Commit

Permalink
java-jaxrs-server: Add operation group tags
Browse files Browse the repository at this point in the history
  • Loading branch information
karlvr committed Aug 22, 2024
1 parent 2bc3447 commit 0758c0a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/fifty-colts-laugh.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@openapi-generator-plus/java-jaxrs-server-generator": minor
---

Add operation group tags
3 changes: 3 additions & 0 deletions packages/java-jaxrs-server/templates/api.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
Expand Down

0 comments on commit 0758c0a

Please sign in to comment.