Closed Andrey-jpeg closed 3 weeks ago
V3 didn't support the value extractors. If you look at the KAPT mocks generated, you can see no annotation is present at the generic parameter. You could try using KSP.
But it was possible to get working with V3 - https://github.com/Nillerr/ksome
Whereas it doesn't work at all in V4
It looks like it was supported, and we took the first generic argument as the unwrapped value. I can try to allow it if the annotation is missing, will see if the TCK will pass
I have created a PR to allow it, but anyway your problem is with KAPT limitation, please consider switching to KSP
Expected Behavior
Wrapped values can be validated by registering Jakarta value extractors.
Actual Behaviour
Objects cannot be deserialized or validated as the DefaultValidatorConfiguration cannot be instantiated.
Steps To Reproduce
run
ValueExtractionTest.canSerailize
test in the example applicationEnvironment Information
No response
Example Application
https://github.com/Andrey-jpeg/valueextraction
Version
4.6.3