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
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.
The text was updated successfully, but these errors were encountered:
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 theorg.springdoc.core.converters.PolymorphicModelConverter
should do.This is because
io.swagger.v3.core.jackson.ModelResolver#resolveSubtypes
inModelResolver:1542
does create theAnnotatedType
with (implicitly)resolveAsRef=false
.Thus the
ref
is never set and thusresolvedSchema.get$ref() == null
isfalse
inPolymorphicModelConverter.java:79
and nooneOfs
are resolved as expected.The text was updated successfully, but these errors were encountered: