v2.0.0
Added
- Added
ValidationContextclass to keep track of current validation path and errors up until a certain point. - Added
examplesfolder - Added explanation regarding
ZonString.datetime()decisions. - Added
ZonLiteral,ZonTupleandZonEnumclasses - Added more
ZonRecordmethods - Added coverage
Changed
- Moved everything into a single file to combat circular reference issues
- Deprecated
ValidationErrorin favor ofZonError. - Simplified validation logic
- Now returns a (deep-) copy of the original data after validation. This is more useful for
ZonRecordandZonStringvalidators that can transform, while transformers are not added.
Removed
- Removed
between,__eq__andequalsmethods fromZonNumber. - Removed
ZonIntegerandZonFloatin favor of new validation rules inZonNumber - Removed
trueandfalsemethods fromZonBoolean
Full Changelog: v1.1.0...v2.0.0