Releases: eventbrite/conformity
Releases · eventbrite/conformity
Introspection
Structured errors
Introduction
Conformity errors are now returned as Error
instances instead of plain error message strings.
Change overview
- Error messages are now found in the
message
attribute of anError
instance. - If you are validating a container type (
List
,Dictionary
, etc.), thepointer
attribute of returnedError
instances will also be set. Error pointers allow you to more easily identify the key or index that generated the error.
Error pointer format
(pointer) => (key_or_index).(pointer) | (key_or_index)
(key_or_index) => (dictionary key) | (list/tuple index)
Example error pointer: people.3.address.zip
new types: Temporal, Tuple, ObjectInstance, SchemalessDictionary
1.1.0 Releasing 1.1.0
Initial release
Merge pull request #2 from eventbrite/validate_method workaround for object methods