jhthorsen / json-validator

:cop: Validate data against a JSON schema
https://metacpan.org/release/JSON-Validator
56 stars 58 forks source link

Add JSON::Validator::Error->details() #133

Closed jhthorsen closed 4 years ago

jhthorsen commented 5 years ago

Summary

This change involves adding details() to the error object, so that you can inspect and a data structure to see what went wrong, instead of looking at message()

Motivation

The motivation behind this is to give the users of JSON::Validator a chance to investigate the cause of an error programatically.

References