If I have several endpoints using tags to organize, how do I organize those tags under different tags(nested tags). Say for example, If I have 4 different tags namely A, B, C, D, that have different endpoints under them. How do I tag A, B under one category and C, D under another category?
Nested tags are not current supported by SwaggerUI and/or by the OpenAPI spec.
There are open issue/feature requests however:
- OpenAPI: https://github.com/OAI/OpenAPI-Specification/issues/1367
- SwaggerUI: https://github.com/swagger-api/swagger-ui/issues/5969
In the interim, you could perhaps employ a different category and tagging strategy within the constraints to emulate nested tags. For example tags
category1.tagA or similar