Skip to content
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

TagGroups namespaces #46

Open
mat-twg opened this issue Aug 17, 2021 · 1 comment
Open

TagGroups namespaces #46

mat-twg opened this issue Aug 17, 2021 · 1 comment

Comments

@mat-twg
Copy link

mat-twg commented Aug 17, 2021

It would be nice to add namespaces at the group level, like this:

tagGroups:
      - name: 'User'
        tags:
          - 'Entity'
          - 'Reports'
      - name: 'Common'
        tags:
          - 'Reports'

And in decorators:

@ApiTags('User.Reports')
// ... some user reports controller

@ApiTags('Common.Reports')
// ... some common reports controller

But render without dots, like:

User
> Reports

Common
> Reports
@joeferraro
Copy link

joeferraro commented Jan 3, 2022

I have a related need where I want the same tag label to be rendered under different groups. Being able to assign an id/label to a tag and reference the tag id in tagGroups would help:

@ApiTags('some-tag-id')
tagGroups: [
  {
    name: "General",
    tags: [
      {
        id: "some-tag-id",
        label: "My Tag Label"
      }
    ],
  },
]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants