All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Updated contribution guidelines.
- Updated CI workflow to run on Pull Request.
2.0.1 - 2024-07-16
- Fixed the return type of
validate
2.0.0 - 2024-06-20
- 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
andZonEnum
classes - Added more
ZonRecord
methods - Added coverage
- Moved everything into a single file to combat circular reference issues
- Deprecated
ValidationError
in favor ofZonError
. - Simplified validation logic
- Now returns a (deep-) copy of the original data after validation. This is more useful for
ZonRecord
andZonString
validators that can transform, while transformers are not added.
- Removed
between
,__eq__
andequals
methods fromZonNumber
. - Removed
ZonInteger
andZonFloat
in favor of new validation rules inZonNumber
- Removed
true
andfalse
methods fromZonBoolean
1.1.0 - 2024-04-10
zon
now has a changelog.- Added
zon.traits
module for common functionality that is specific to no validator. - Added the
zon.traits.collection
file which contains theZonCollection
class: this is the base class for all collection types. - Added testing for
ZonCollection
and added more tests forZonString
. - Scripts that automate the building and publishing of the package to PyPI.
- Added
refine
method to the baseZon
class.
ZonString
now inherits fromZonCollection
instead ofZon
.ZonList
now inherits fromZonCollection
instead ofZon
.- Updated
README.md
to include more information and examples of code usage.
- Removed the
len
function fromZonString
andZonList
as it was not being used and did too much.
1.0.0 - 2023-11-26
- Added base source code files for the project.
- Base
README.md
file.