File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
http-generator-core/src/main/java/io/avaje/http/generator/core/openapi Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -152,22 +152,22 @@ public void addTagsDefinition(Element element) {
152152 }
153153
154154 public void addTagDefinition (Element element ) {
155- final var tag = TagPrism .getInstanceOn (element );
156- if (tag == null ) return ;
157155
158- openAPI .addTagsItem (createTagItem (tag ));
156+ for (var tag : TagPrism .getAllInstancesOn (element )) {
157+ openAPI .addTagsItem (createTagItem (tag ));
158+ }
159159 }
160160
161161 public void addSecurityScheme (Element element ) {
162- var schemes = SecuritySchemePrism .getAllInstancesOn (element );
163- if (schemes == null ) {
164- return ;
165- }
166- this .addSecuritySchemes (schemes );
162+
163+ this .addSecuritySchemes (SecuritySchemePrism .getAllInstancesOn (element ));
167164 }
168165
169166 public void addSecuritySchemes (Element element ) {
170167 var schemes = SecuritySchemesPrism .getInstanceOn (element );
168+ if (schemes == null ) {
169+ return ;
170+ }
171171 this .addSecuritySchemes (schemes .value ());
172172 }
173173
You can’t perform that action at this time.
0 commit comments