Skip to content

Conversation

Alex4386
Copy link

Abstract

This PR adds support for redoc's x-tagGroups (Ref), which is supported by Scalar (Reference)

Example

new Elysia()
  .use(swagger({
    path: '/docs',
    documentation: {
      tags: [
        {
           name: 'two-factor',
           description: 'Allow users to manage their 2FA config'
        }, {
           name: 'password',
           description: 'User actions for changing their own password'
        }
      ],
      'x-tagGroups': [
        {
          name: 'user',
          tags: ['two-factor', 'password']
        }
      ]
    }
  })

The example code will generate Scalar UI like the following:
image

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

Successfully merging this pull request may close these issues.

1 participant