Closed as not planned
Description
Describe the bug
Given a super type and a subtype, if you use another supertype on a property of the subtype it is not resolved using oneOfs
correctly, as the org.springdoc.core.converters.PolymorphicModelConverter
should do.
This is because io.swagger.v3.core.jackson.ModelResolver#resolveSubtypes
in ModelResolver:1542
does create the AnnotatedType
with (implicitly) resolveAsRef=false
.
Thus the ref
is never set and thus resolvedSchema.get$ref() == null
is false
in PolymorphicModelConverter.java:79
and no oneOfs
are resolved as expected.
Metadata
Metadata
Assignees
Labels
No labels