Skip to content

Add support for @Tags annotation #496

Closed
@setarator

Description

@setarator

Feature
If I annotate the handler method with multiple @Tag annotations or aggregate them in @Tags, the builder will not read them (multiple @Tag after compilation will be aggregated in @Tags). I believe that the issue is in OpenAPIBuilder.buildTags method as it only tries to read Tag.class.

To Reproduce
Steps to reproduce the behavior:

  • Annotate any handler method with multiple @Tag or use @Tags
    We are using springdoc 1.2.33 & spring-boot 2.2.5.RELEASE

Expected behavior
Tags are read correctly.

Also would it be possible to have control over isAutoTagClasses? I would like to tag class automatically even when handler method tags are present.

Thanks,
Tom

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions