Open loicmathieu opened 2 weeks ago
if you would like to contribute a PR to resolve this would be appreciated. In general Hibernate Validator support is in maintenance mode and we recommend users switch to Micronaut's implementation
I have no idea where to start, and if it would take long or not.
We may try to update to Micronaut's implementation but as I understand it, it's based on an annotation processor and as our plugins can contribute validators and we don't want too much dependencies between our plugins and Micronaut I'm not sure it will work.
Expected Behavior
We should be able to create a custom value extractor and use it.
Actual Behaviour
Give the following value extractor
We should be able to use it to add validation annotations to the
Property
type parameter like that:But when we do that, it fails with the following error:
See the following reproducer, you can reproduce the error with the following curl command:
value-extractor.zip
You must use Micronaut validation 4.8.0 due to https://github.com/micronaut-projects/micronaut-validation/issues/432
Steps To Reproduce
No response
Environment Information
Ubuntu 24.10 Java 21
Example Application
No response
Version
4.6.3