-
-
Notifications
You must be signed in to change notification settings - Fork 524
Tags with only name provided are being added to the openAPI.tags field #1648
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Using the link you have provided which refers to the official @OpenAPIDefinition(
tags = {
@Tag(name = "Tag 1", description = "desc 1", externalDocs = @ExternalDocumentation(description = "docs desc")),
@Tag(name = "Tag 2", description = "desc 2", externalDocs = @ExternalDocumentation(description = "docs desc 2")),
@Tag(name = "Tag 3")
}
)
static class ClassWithAnnotation {..} Would generate: openapi: 3.0.1
tags:
- name: Tag 1
description: desc 1
externalDocs:
description: docs desc
- name: Tag 2
description: desc 2
externalDocs:
description: docs desc 2
- name: Tag 3 This doesn't seem what you are expecting; Right ? |
@bnasslahsen
Resolves into:
I see that my initial description was unclear/inaccurate, hopefully this clears up what I would expect. |
I have added a first fix for it. |
The latest snapshot looks to generate as I was expecting. Thank you, much appreciated! |
Describe the bug
@Tag
annotation, according to https://docs.swagger.io/swagger-core/v2.2.0/apidocs/io/swagger/v3/oas/annotations/tags/Tag.html,To Reproduce
io.swagger.v3.oas.annotations.tags.Tag
annotation on a class or method with only the name field populatedExpected behavior
The text was updated successfully, but these errors were encountered: