Skip to content

Support for inheritance and polymorphism in DocService #6313

@icepeppermint

Description

@icepeppermint

I'm using DocService to document our API. Currently, the response classes of the annotated HTTP service use inheritance and polymorphism. There doesn't seem to be any support for this case at the moment. It would be great if Armeria automatically detect annotations like @JsonSubTypes. Or, it's good to create a new annotation to specify it manually. Below is an example of a Discriminator in Swagger.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions