play-json-schema-validator icon indicating copy to clipboard operation
play-json-schema-validator copied to clipboard

Customizable error message

Open edgarmueller opened this issue 10 years ago • 2 comments

The Schema validator error messages should be customizable.

edgarmueller avatar Nov 02 '15 08:11 edgarmueller

Yes, this would be great. When there is validation error i don't want to see original jsValue because it's too big sometimes

kondaurovDev avatar Jul 13 '16 14:07 kondaurovDev

The initial motivation for this issue was because of i18n reasons, but we could also think about altering the general error reporting format. So, what you propose is remove the value field, since it gets too big sometimes, is that correct? I guess it would be feasible then too configure the format via the application.conf file? Would that work for you? Likewise, translations could be provided via conf/message.xxx files as described here.

edgarmueller avatar Jul 13 '16 15:07 edgarmueller