-
-
Notifications
You must be signed in to change notification settings - Fork 504
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bad schema return type when created a generic wrapper class for response entity #2733
Comments
I have changed the fix, as it breaks other tests. |
You're right, I only checked my test and had hope that this project would have some pipeline. This approach pass all tests, and works in my opinion correct: |
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.
Additional context
The bug has already been fixed. I'll write tests and submit a PR shortly!
The text was updated successfully, but these errors were encountered: