question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support Hierarchical Tags

See original GitHub issue

Is your feature request related to a problem?

There is growing support in the OAS community for the idea of hierarchical tags (see OAI/OpenAPI-Specification#1367). The current consensus is that UIs like SwaggerUI can implement this with no change required in the OAS, and that this would be a much appreciated feature. I would like to implement it in SwaggerUI and would like help identifying the best way to do so.

Describe the solution you’d like

Tags such as Petstore|Mammals|Dogs should render as

## Petstore

### Mammals

#### Dogs

....

EDIT: Temporary Solution

I’ve implemented and published a package for this. Instructions for use are here. There is also a PR out for this (here), but it is long stale and I doubt that Swagger will ever take interest in it. For now, your best bet is to use my published package, which works well as an ES module include in a webpack scenario OR as a global module via unpkg.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:131
  • Comments:68 (12 by maintainers)

github_iconTop GitHub Comments

29reactions
mathis-mcommented, Mar 4, 2021

At least in the APIs I work with, this could still be very long. It’d be nice to have some kind of vertical gray line on the left to signify how deeply something is nested.

How about: HierarchicalTags

23reactions
kael-shipmancommented, May 13, 2020

Thanks for commenting! Good to know others find this desirable.

To the devs: I repeat my offer to implement this and PR it if you’ll give me a push to start me in the right direction 😉.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Colorful Tags (+ Hierarchical Tags)
44 and below): Colorful Tags adds support for tag hierarchies, but does not provide the ability to color and pin tags. If you...
Read more >
Hierarchical tags? | Support | tagMe
Currently add-on doesn't support hierarchy of tags. It is savings tags in individual records in to the text area field as comma separated...
Read more >
Managing Hierarchical Tags - Technical Documentation
You can use hierarchical tags to classify objects managed by Junos Space Network Management Platform into categories and subcategories.
Read more >
How Do Tag Hierarchies Work?
The tag hierarchy dictates which tag type to use for the high level summary, and which to use for lower level breakdown. The...
Read more >
What's a hierarchical tag?
These hierarchies are much more expressive than flat tags, as they infer relationships between “ancestor” and “descendant” tags (looking at ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found