Skip to content

Enable adding new validators by defining spring beans to complement the default Validator #3221

@taefi

Description

@taefi

Describe your motivation

At the moment, Hilla looks for a bean of type Validator, and if nothing found, it falls back the default from Jakarta API.
Most of the times, the defaults are needed, and the user wants to add some custom validators on top. Hilla can make it easier for the users to define as many custom validators as they want to complement the defaults, not to replace it.

Describe the solution you'd like

The main motivation of this enhancement issue is to the enable users introducing as many Validator beans to use them on top of the default from Jakarta API.

Then, if possible, the framework can expect an optional bean of type ValidatorFactory to enable users for completely opting out from the default, and introduce their own universal Validator.

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions