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
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 of AnnotationsUtils.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(...).
The text was updated successfully, but these errors were encountered:
AnnotationsUtils class is related to swagger-core project, and not to springdoc-openapi.
On the post you are mentionning, its indicated you can use SpringDocAnnotationsUtils.extractSchema as well, which supports ParameterizedType.
If you really only want AnnotationsUtils, you can submit your request to the github project of swagger-core instead:
Describe the bug
AnnotationsUtils.resolveSchemaFromType
cannot be called with aParameterizedType
instance though it is suggested as a replacement for private methodResponseBuilder::calculateSchema(...)
in issue 455To Reproduce
ParameterizedType
object as first parameter ofAnnotationsUtils.resolveSchemaFromType
.Error java: incompatible types: java.lang.reflect.Type cannot be converted to java.lang.Class<?>
Expected behavior
ParameterizedType
instance can be passed toAnnotationsUtils.resolveSchemaFromType
, as when callingResponseBuilder::calculateSchema(...)
.The text was updated successfully, but these errors were encountered: