Skip to content

Discriminators not rendered #1106

@protyposis

Description

@protyposis

Describe the bug

Schemas with discriminators don't seem to be correctly interpreted and rendered.

Expected behavior

Users should be able to select an option and see the related schema, as indicated in the screenshot in #174.

Current behavior

Only the discriminator property is rendered, and displayed like an enum.

Steps to reproduce

Check any example in the demo section at https://docusaurus-openapi.tryingpan.dev/tests/discriminator-variations-api.

Your Environment

  • Version used: 4.3.6
  • Environment name and version (e.g. Chrome 59, node.js 5.4, python 3.7.3): Chrome 133, Node.js 20.12.2, Docusaurus 3.7.0
  • Operating System and version (desktop or mobile): Windows 11

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions