-
Notifications
You must be signed in to change notification settings - Fork 132
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
Switching between response codes with multiple named examples causes an error #1624
Comments
I think the issue is that the I'm not sure if the expected behavior would be to clear the value so that the first response is selected when switching tabs or potentially just checking if the key exists in the |
Great bug report! Let’s fix this! |
@hanspagel What do you think about something like this? I haven't tested it because of some build issues, but I think the logic adds up.
|
this looks good to me! want to open a PR @gsmcdonald ? we can also tackle it ✨ |
@marclave I'll open a PR soon. Thank you! |
@marclave I'm struggling to get it to build. Have you seen this error before? As much as I hate to ask you to make another change, if you do have time to implement this, it might be faster. I'll post this in the Discord as well to make conversation easier. |
Fixed by #1934 |
What happens?
An error occurs when switching between response codes with different names for examples
What did you expect to happen?
The selected response code's example to show.
How can we reproduce the issue?
The error will be in the console in the sandbox, but I'm not seeing the effects there (but I am seeing them when using a project at docs.scalar.com)
Swagger/OpenAPI Example
https://sandbox.scalar.com/e/s4ysq
The text was updated successfully, but these errors were encountered: