Skip to content
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

Perform checks for bean validation constraints in HandlerMethod only when needed #32007

Closed
rstoyanchev opened this issue Jan 10, 2024 · 1 comment
Assignees
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) type: enhancement A general enhancement
Milestone

Comments

@rstoyanchev
Copy link
Contributor

Method validation is not needed for all types of controller methods. We should make the initialization of the shouldValidate flags in HandlerMethod more explicit rather than performed for every instances created.

@rstoyanchev rstoyanchev added in: web Issues in web modules (web, webmvc, webflux, websocket) type: enhancement A general enhancement labels Jan 10, 2024
@rstoyanchev rstoyanchev added this to the 6.1.3 milestone Jan 10, 2024
@rstoyanchev rstoyanchev self-assigned this Jan 10, 2024
@tadlakha9
Copy link

tadlakha9 commented Mar 7, 2024

Hello @rstoyanchev, Do we have to enable any specific flag to enable the method validation? As in our project we are getting issue while validation is not passed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

2 participants