Skip to content

Make discriminator values easy to copy, e.g. by automatically adding a single-value enum to discriminatorsΒ #1690

Open
@cmeeren

Description

@cmeeren

When selecting discriminator values in the dropdown, there is no easy way to copy the value.

image

It would be nice if it was possible to easily copy the value.

Since the discriminator is in effect an enum, ReDoc could render an enum value equal to the currently selected option. For reference, this is the kind of enum rendering I am talking about:

image

Other solutions may also exist.

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