Skip to content

Releases: Naapperas/zon

v2.0.1

16 Jul 10:36
8f775a1
Compare
Choose a tag to compare

Changed

  • Fixed the return type of validate

Full Changelog: v2.0.0...v2.0.1

v2.0.0

20 Jun 18:22
d9561a2
Compare
Choose a tag to compare

Added

  • Added ValidationContext class to keep track of current validation path and errors up until a certain point.
  • Added examples folder
  • Added explanation regarding ZonString.datetime() decisions.
  • Added ZonLiteral, ZonTuple and ZonEnum classes
  • Added more ZonRecord methods
  • Added coverage

Changed

  • Moved everything into a single file to combat circular reference issues
  • Deprecated ValidationError in favor of ZonError.
  • Simplified validation logic
  • Now returns a (deep-) copy of the original data after validation. This is more useful for ZonRecord and ZonString validators that can transform, while transformers are not added.

Removed

  • Removed between, __eq__ and equals methods from ZonNumber.
  • Removed ZonInteger and ZonFloat in favor of new validation rules in ZonNumber
  • Removed true and false methods from ZonBoolean

Full Changelog: v1.1.0...v2.0.0

v1.1.0

10 Apr 11:15
Compare
Choose a tag to compare

Extended zon functionality.

What's Changed

Full Changelog: v1.0.0...v1.1.0

v1.0.0

26 Nov 18:33
Compare
Choose a tag to compare

Finished developing version 1.0.0 of zon.

Present features include standard basic types and "compound" types.

Full Changelog: https://github.com/Naapperas/zon/commits/v1.0.0