Closed
Description
Describe the bug
When I use @JsonSubTypes with @Schema(oneOf = {..}), the model schema shows infinite nested oneOf and allOf. When I remove @JsonSubTypes from the parent model, everything works well. Am i doing something wrong or is this expected behaviour ?
Expected behavior
The expected behavior is to show only the oneOf field. After selecting one of the child classes, it should stop expanding.
Screenshots
The structure of the model
Versions
- springdoc-openapi-starter-webmvc-ui 2.1.0