Skip to content

Add a descriptor kind for JsonContentPolymorphicSerializer #2697

Open
@kunyavskiy

Description

What is your use-case and why do you need this feature?

When you use JsonContentPolymorphicSerializer, it's impossible to specify a list of shapes you expect, while it's still useful for schema exporing.

Describe the solution you'd like

Probably, it should be a new descriptorKind in PolymorficKind and some utility function like

buildContentBasedDescriptor(options: List<SerialDescriptor>

to build it.

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