Redocly / Redocly/redoc

The schema switch is not working in Firefox

Open
#2,498 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Type: Bug
Dominant language
TypeScript
Stars
25.9k
Forks
2.4k
Avg merge
13h 10m
Merged PRs (30d)
4

Description

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)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue using the provided apidoc_test.yaml and generated apidoc_test.html in Firefox 123.0.1, then compare the schema switch behavior with Chrome. Trace the frontend schema-switch entry point and verify that the request schema remains switchable in Firefox without breaking the existing Chrome behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.