No link when there's only one option #1314
ChristianFuhrhop
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We have an API described in Docusaurus with OpenAPI-YAML and we had users mention that they disliked it when there was a link that "didn't do anything".

What they meant is that if there's an
content: application/json:set, the plugin will generate a tab with a link.This makes sense if there are multiple schemas to choose from, but if there's only one schema set, the link is superfluous.
It does not cause any real issues - our users simply don't like it.
Would it be possible to provide some option that no link is generated (
tabs__item openapi-tabs__mime-iteminstead oftabs__item openapi-tabs__mime-item active) if there's only one scheme?I am sure that most users will either not care or prefer the (more consistent) way it is done now, so it definitely should be something optional. But if it can be done without too much effort, it would be nice to have.
Beta Was this translation helpful? Give feedback.
All reactions