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
Options
object template.
1.2.0 - 22.06.2021
- Added the
dump_errors
method in theTemplateCheckErrorCollection
object.
- Changed some validation methods to use the new
dump_errors
method. This is a purely internal change, and the user behavior should stay the same.
1.1.0 - 19.06.2021
- The
TemplateAny
template, that accepts any data.
1.0.2 - 18.06.2021
- If a default value is provided to the
Optional
object, it will be checks to see if it follows the template. If not, aInvalidDefaultValue
exception will be raised. For example,Optional(Template(str), default=123)
will raise anInvalidDefaultValue
exception 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
BaseTemplate
usingfrom validit.templates import BaseTemplate