You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way for springdoc-openapi to determine Schema discriminatorProperty / discriminatorMapping purely from @JsonTypeInfo / @JsonSubTypes ? #2999
As title. I'm working on an API in Spring Boot 2.7.17, using springdoc 1.8.0. It seems like I am forced to effectively duplicate my schema specification between @Schema and @JsonTypeInfo, which leaves a sour taste.
As is evident, the information on the @Schema annotation exactly matches (and therefore must be kept in sync with) the Jackson type information on JsonTypeInfo and JsonSubTypes. Is there a way to get springdoc to build subschema 'routing' documentation without reiterating myself here?