-
Notifications
You must be signed in to change notification settings - Fork 9k
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
Error messages display on screen briefly before disappearing #5214
Comments
Hi @jimcullenaus, thanks for filing this. You see no difference in behavior between 3.21.0 and 3.20.6 with your definition? I ask because we specifically made a change last week that should persist resolver error messages (#5193).
Swagger UI doesn't generate error messages for invalid definitions - only for network and resolver problems, generally. Are you referring to the embedded Swagger UI found within Swagger Editor? |
You should be able to see the errors in the screenshots above. Faded, because the messages appear so briefly that the screen recording software I used couldn't grab them properly. The errors I have been able to capture do all seem to be resolver errors, however. From what I could tell, yes, the problem occurs in both 3.21.0 and 3.20.6. Unfortunately the only way I could find to tell what version is actually running was from code, not from the browser, so it is not impossible that somehow the version running was not the version specified in the package.json. However everything I can see suggests that the version was updated and that the error still occurred. |
Each Swagger UI 3x version comes with a version identifier baked into it - see the version detection documentation for more information. Long story short, checking If you're able to get back to your original example, that may help confirm your assumptions 😄 |
Hmm, it does indeed seem to be running the older version still. Not sure why. I have been unable to get it to upgrade to the latest version whatever I try. However, it does confirm that I can't confirm the issue occurs even on 3.21.0, so unless there's more to add, I'll close off this ticket. |
Q&A (please complete the following information)
Content & configuration
Any invalid OpenAPI configuration.
One common example is not including query parameters under a
schema
object in a 3.0 config, and instead simply declaring their type directly under the parameter.Describe the bug you're encountering
When loading the swagger ui, an error briefly appears at the top of the page, for a small fraction of a second. It then immediately disappears.
No messages are left in the console log.
To reproduce...
Steps to reproduce the behavior:
Expected behavior
Errors should remain at the top of the page until and unless manually dismissed.
Errors should also ideally be added to the console log.
Screenshots
Screenshots taken at various stages in the loading of the page.
The text was updated successfully, but these errors were encountered: