jhthorsen / json-validator

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

Add value to enum validation error message #132

Closed CandyAngel closed 5 years ago

CandyAngel commented 5 years ago

Summary

Improve the error message for enum validation failures

Motivation

The error message did not contain the value that had failed validation, making it more difficult than needed to either find the item with the incorrect data or add it to the enum if it was actually valid.

jhthorsen commented 5 years ago

I've considering this as well, but if this change is made, then I guess all of the other error messages need to include the input value as well.

I'm voting against this change for now.

jhthorsen commented 5 years ago

Closing this, since no other comments/updated has been made.