Skip to content

Releases: eventbrite/conformity

Introspection

13 Apr 20:18
Compare
Choose a tag to compare

Introduction

Introspection functionality has been added to fields.

Change overview

  • The Field interface now has introspect() method that returns a dictionary describing the field.
  • Conformity is now Python 3 compatible.

Structured errors

06 Feb 23:32
Compare
Choose a tag to compare

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 an Error instance.
  • If you are validating a container type (List, Dictionary, etc.), the pointer attribute of returned Error 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

25 Oct 20:02
Compare
Choose a tag to compare

Initial release

05 Oct 00:40
Compare
Choose a tag to compare
Merge pull request #2 from eventbrite/validate_method

workaround for object methods