Hi Ivan, What I recall is that oneOf is not part of Swagger version 2. But I haven't try it yet with the maven plugin you mention.
El vie, 8 ene 2021 a las 7:08, Ivan Junckes Filho (<[email protected]>) escribió: > 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})) > ) > > -- Atentamente: César Hernández.
