Hi Michael,
This should work with EL based interpolation as of BV 1.1, using the
expression ${validatedValue}.
Check 5.3.1.3. "Message expressions using Expression Language (EL)" [1].
Seems like this should do the trick, or is there anything missing for your
use case?
Thanks,
--Gunnar
[1]
http://beanvalidation.org/1.1/spec/#message-expressions
2016-09-06 20:47 GMT+02:00 Michael Nascimento <misterm(a)gmail.com>:
Hi guys,
I've searched the spec to make sure this hasn't been solved yet and
apparently it had not, but please let me know if I'm wrong.
I remember last year in my previous company struggling with the fact
there was no way to include the actual invalid value as part of the
message interpolation process. This is needed in many scenarios,
especially when the actual invalid value is somehow derived or
computed and the only way to report the error is by returning it in
the interpolated message.
Do you guys see any value in providing support for that in the spec?
Regards,
Michael
_______________________________________________
beanvalidation-dev mailing list
beanvalidation-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/beanvalidation-dev