Skip to content

Rapidoc should not show default header for spec failures, when header is set to be hidden and error message contain the details #942

@sberwal

Description

@sberwal

Hi

Currently if rapidoc is used in embedded mode and is not able to parse the json specified in the spec-url it shows the default rapidoc header with the name of json file revealed and a default error message saying spec not loaded.

If there was way to handle the error messages thrown by rapidoc and pass a custom error message there for default errors. Also the default rapidoc header should not be revealed.

the rapidoc code

  | <rapi-doc id="thedoc"
  | spec-url="../xyz/swagger/v1/swagger.json"
  | theme = 'light'
  | schema-style = 'table'
  | render-style = 'read'
  | font-size= 'default'
  | show-header = 'false'
  | show-info = 'true'
  | allow-authentication ='false'
  | allow-server-selection = 'false'
  | allow-api-list-style-selection ='false'
  | use-path-in-nav-bar='false'
  | >
  | </rapi-doc>

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions