Skip to content

Conversation

@vitormelo95
Copy link
Contributor

#4334 #3973

As described by the above issues, when using a nested @BeanParam, the defined parameters are shown as the bean type through the schema ref. This is not the expected behavior as we should see the schema of the inner parameters.

Debugging the DefaultParameterExtension we discovered that this is caused by applying the parent field annotations in the extracted parameters. The solution was remove this reprocessing part as we couldn't find a situation where this is necessary.

@vitormelo95 vitormelo95 changed the title fix: stops reprocessing parameters extracted from nested BeanParam #4334 fix: stops reprocessing parameters extracted from nested BeanParam Jan 4, 2023
@leolimas
Copy link

leolimas commented Jan 5, 2023

@frantuma @HugoMario hey guys can check this?

@vitormelo95 vitormelo95 force-pushed the fix/nested-bean-parameter branch from 6f9f11e to 86c64de Compare January 6, 2023 19:41
@plesingr-aeb
Copy link

plesingr-aeb commented Nov 6, 2025

Hi, the problem is still there - tested with 2.2.40.
Could you please proceed with the fix ASAP? I have recently invested several days refactoring into bean params and now it seems I'll have to discard everything.

@ewaostrowska ewaostrowska force-pushed the fix/nested-bean-parameter branch from a43c06c to 0f96b01 Compare November 21, 2025 08:30
@ewaostrowska ewaostrowska merged commit 2546511 into swagger-api:master Nov 21, 2025
5 checks passed
@ewaostrowska
Copy link
Contributor

@vitormelo95 thank you for your contribution in the project. It will be included in the upcoming release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants