I am facing a rather strange issue: it seems to be not possible to return just the message part from a ValidationMessage. Calling .getMessage() or .toString() returns the JSONPath associated with the error, and then the message.
It is obviously possible to extract the message text from that by editing the string itself but that seems rather hacky. Is there a standard way to retrieve the bare message itself?
Hello!
I am facing a rather strange issue: it seems to be not possible to return just the message part from a
ValidationMessage
. Calling.getMessage()
or.toString()
returns the JSONPath associated with the error, and then the message.It is obviously possible to extract the message text from that by editing the string itself but that seems rather hacky. Is there a standard way to retrieve the bare message itself?