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

[Bug]: "Try it out" button doesn't trigger the "Example value" editor #3142

Open
brenohfnc opened this issue Nov 13, 2024 · 1 comment
Open

Comments

@brenohfnc
Copy link

brenohfnc commented Nov 13, 2024

Describe the bug

Clicking the "Try it out" on an operation with request body doesn't automatically trigger the "Example value" editor.

The following video contains a comparison between the expected (which I could trace back to v6.4.0, the one I was using) and the actual behavior:

Expected:
https://github.com/user-attachments/assets/95f338b0-b9b7-44e7-b2dd-08b23f1d4b29

Actual:
https://github.com/user-attachments/assets/191634b6-c446-4e26-ba85-8dff1df804bf

Expected behavior

Clicking the "Try it out" on an operation with request body automatically triggers the "Example value" editor.

Actual behavior

Clicking the "Try it out" on an operation with request body doesn't automatically trigger the "Example value" editor.

Steps to reproduce

  1. Go to a documentation page.
  2. Click on an operation.
  3. Click on the "Try it out" button.

Exception(s) (if any)

No response

Swashbuckle.AspNetCore version

v7.0.0 (current).

.NET Version

net8.0

Anything else?

No response

@brenohfnc brenohfnc added the bug label Nov 13, 2024
@martincostello
Copy link
Collaborator

Since 6.4.0, swagger-ui has been upgraded from v4.12.0 to v5.18.1.

Unless there's a difference in the OpenAPI document itself that causes this change in behaviour (and it's a bug), this will be something to take up with the SwaggerUI project to see if it's a bug or an intentional UX change between those versions.

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