Skip to content

Error messages display on screen briefly before disappearing #5214

@jimcullenaus

Description

@jimcullenaus

Q&A (please complete the following information)

  • OS: Ubuntu 18.04.1 LTS
  • Browser: Chrome 72.0.3626.81, Firefox 65.0.1
  • Swagger-UI version: 3.21.0, 3.20.6
  • Swagger/OpenAPI version: OpenAPI 3.0

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:

  1. Create an OpenAPI spec with some errors in it.
  2. Load that spec using the swagger-ui
  3. Observe error messages flash at the top of the page and disappear

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.

vlcsnap-2019-03-04-10h24m51s609
vlcsnap-2019-03-04-10h25m05s537
vlcsnap-2019-03-04-10h25m16s546

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions