java-json-tools / json-schema-validator

A JSON Schema validation implementation in pure Java, which aims for correctness and performance, in that order

Home Page:http://json-schema-validator.herokuapp.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Obtain JUST the message from a ValidationMessage?

opened this issue · comments

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?