Hello guys, I would like to know if there is a way with
geronimo-openapi-plugin to generate the documentation for different classes
in the same status code. I didn't tried different ways, but couldn't make
it work. Any advise on this? Is this supported?

@APIResponse(
    name = "badRequest",
    responseCode = "400",
    description = "Error.",
    content = @Content(
        mediaType = APPLICATION_JSON,
        schema = @Schema(oneOf = {Error.class, AnotherError.class}))
)

Reply via email to