All notable changes to validit will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
1.3.2 - 26.06.2021
- Fixed a bug that prevented the creation of optional options templates
(
Optional(Options(...)))
1.3.1 - 25.06.2021
- Fixed a bug that caused an unintentional error to raise when parsing of a configuration file failed.
1.3.0 - 25.06.2021
- Added the
Optionsobject template.
1.2.0 - 22.06.2021
- Added the
dump_errorsmethod in theTemplateCheckErrorCollectionobject.
- Changed some validation methods to use the new
dump_errorsmethod. This is a purely internal change, and the user behavior should stay the same.
1.1.0 - 19.06.2021
- The
TemplateAnytemplate, that accepts any data.
1.0.2 - 18.06.2021
- If a default value is provided to the
Optionalobject, it will be checks to see if it follows the template. If not, aInvalidDefaultValueexception will be raised. For example,Optional(Template(str), default=123)will raise anInvalidDefaultValueexception because the default value is an integer, but the template accepts only strings.
1.0.1 - 17.06.2021
- This changelog file!
- Option to import
BaseTemplateusingfrom validit.templates import BaseTemplate