Skip to content

Bad schema return type when created a generic wrapper class for response entity #2733

Closed
@kamilkrzywanski

Description

@kamilkrzywanski

project.zip
Bug Description
When I created a wrapper for ResponseEntity with a generic class inside, the API is generated with the wrapper type instead of the expected ResponseEntity type.

Steps to Reproduce

Create a custom wrapper for ResponseEntity with a generic class.
Generate API documentation (e.g., Swagger/OpenAPI).
Notice that the API uses the custom wrapper class instead of ResponseEntity.
Included a zip file with the code.

Expected Behavior
The API should return the exact type wrapped in the ResponseEntity, not the wrapper itself.

Screenshots
If applicable, add screenshots to help explain your problem.
image
image
image

Additional context
The bug has already been fixed. I'll write tests and submit a PR shortly!

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