redoc icon indicating copy to clipboard operation
redoc copied to clipboard

The schema switch is not working in Firefox

Open tarasstruk opened this issue 1 year ago • 1 comments

Describe the bug

When API Requests schema has a discriminator, it is visible as a switch, which permits to see all possible Request variants. This works perfectly in Chrome browser, but fails in the Firefox.

To Reproduce

Steps to reproduce the behavior:

  1. given OpenAPI file apidoc_test.yaml as the input;
  2. redocly generates apidoc_test.html from apidoc_test.yaml without errors and without warnings;
  3. open the resulting file apidoc_test.html with the Firefox browser and see the error as it outlined in the screenshot: firefox

Expected behaviour

The request Schema should be "switchable" in Firefox browser.

OpenAPI description

The source YAML and the result HTML files can be found here: openapi.zip

Software Versions

redocly --version
1.9.1

node --version
v14.18.3

Firefox: 123.0.1 (64-bit)

tarasstruk avatar Mar 06 '24 13:03 tarasstruk

Hey @tarasstruk! Thanks for reporting this. Somehow the values and labels are getting mixed up in Firefox (see the screenshot).

Anyway, I'm transferring this to the Redoc repository as I believe it's not related to the CLI itself.

Screenshot 2024-03-08 at 09 21 23

tatomyr avatar Mar 08 '24 07:03 tatomyr