Skip to content

Conversation

srfarley
Copy link
Contributor

ValidationException#getAllMessages() walks through all nested violations and return the list of error messages. This is particularly useful for use by a REST API when validating the schema of an incoming JSON payload. The flat list of messages provides a convenient format for clients to log, and even parse, the errors.

I also added a unit test to verify existing and new behavior for multiple nested schema violations.

Walk through all nested violations and return the list of error messages.
This is particularly useful for use by a REST API when validating the
schema of an incoming JSON payload. The flat list of messages provides
a convenient format for clients to log, and even parse, the errors.
@erosb erosb merged commit 6a8bf59 into everit-org:master Nov 14, 2016
@erosb
Copy link
Contributor

erosb commented Nov 14, 2016

Merged. Thank you for your work @srfarley !

@srfarley
Copy link
Contributor Author

@erosb You're quite welcome! Do you have a date planned for the next release?

@erosb
Copy link
Contributor

erosb commented Nov 14, 2016

Definitely this year, but I don't know any more accurate release date.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants