Skip to content

AnnotationsUtils.resolveSchemaFromType does not accept ParameterizedType #458

Closed
@cnusp

Description

@cnusp

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(...).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions