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

Can I change the condition for displaying the "Example Dropdown" in the "Response Sample" section to when there is more than one example? #2675

Open
fhdufhdu opened this issue Mar 25, 2025 · 1 comment

Comments

@fhdufhdu
Copy link

Describe the problem to be solved
The 'Example Dropdown' does not appear when there is only one example, which is very inconvenient. Currently, the condition is set to display only when there are more than one example. Would it be okay to change this to display when there is at least one example? I found the relevant code in MediaTypeSample.tsx.

Describe the solution you'd like
Modify the condition in MediaTypeSample.tsx.

Describe alternatives you've considered
Nothing

Additional context

  • AS_IS
    Image

  • TO_BE
    Image

@jeremyfiel
Copy link

Can you explain the use case for adding the drop down for one item?

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

No branches or pull requests

2 participants