Closed
Description
Describe the bug
AnnotationsUtils.resolveSchemaFromType
cannot be called with a ParameterizedType
instance though it is suggested as a replacement for private method ResponseBuilder::calculateSchema(...)
in issue 455
To Reproduce
- Pass
ParameterizedType
object as first parameter ofAnnotationsUtils.resolveSchemaFromType
. - This leads to
Error java: incompatible types: java.lang.reflect.Type cannot be converted to java.lang.Class<?>
Expected behavior
ParameterizedType
instance can be passed to AnnotationsUtils.resolveSchemaFromType
, as when calling ResponseBuilder::calculateSchema(...)
.