Closed phochste closed 4 years ago
Do you mean hash lookup keys? I don’t think that’s ever been documented to work, so by poking knot the hash-ref, you’re breaking encapsulation. If you want the Dumper() code to work as you expect, the you have to call TO_JSON() on each of the error objects.
The proper way is to use the message() method to get the message.
Steps to reproduce the behavior
Run this code in 3.15 and in a previous version of JSON::Validator. One can see that the error handling has been changed and is not backwards compatible.
Expected behavior
I expect a
path
and amessage
key (and maybe a newdetails
key)Actual behavior
The
message
key has been deleted from the error messages