forked from pyeve/cerberus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCHANGES
108 lines (78 loc) · 3.17 KB
/
CHANGES
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
Cerberus Changelog
==================
Here you can see the full list of changes between each Cerberus release.
Version 0.6
-----------
Not released yet.
- Added 'number' data type, which validates against both float and integer
values (Brandon Aubie).
- Added support for running tests with py.test
- Fix non-blocking problem introduced with 0.5 (Martin Ortbauer).
- Fix bug when _error() is calld twice for a field (Jaroslav Semančík).
- More precise error message in rule 'schema' validation (Jaroslav Semančík).
- Use 'allowed' field for integer just like for string (Peter Demin).
Version 0.5
-----------
Released on December 4 2013
- 'validator.errors' now returns a dictionary where keys are document fields
and values are lists of validation errors for the field.
- Validator instances are now callable. Instead of `validated
= validator.validate(document) you can now choose to do 'validated
= validator(document)' (Eelke Hermens).
Version 0.4.0
-------------
Released on September 24 2013.
- 'validate_update' is deprecated and will be removed with next release. Use
'validate' with 'update=True' instead. Closes #21.
- Fixed a minor encoding issue which made installing on Windows/Python3
impossible. Closes #19 (Arsh Singh).
- Fix documentation typo (Daniele Pizzolli).
- 'type' validation is always performed first (only exception being
'nullable'). On failure, subsequent rules on the same field are skipped.
Closes #18.
Version 0.3.0
-------------
Released on July 9 2013.
- docstrings now conform to PEP8.
- `self.errors` returns an empty list if validate() has not been called.
- added validation for the 'float' data type.
- 'nullable' rule added to allow for null field values to be accepted in
validations. This is different than required in that you can actively change
a value to None instead of omitting or ignoring it. It is essentially the
ignore_none_values, allowing for more fine grained control down to the field
level (Kaleb Pomeroy).
Version 0.2.0
-------------
Released on April 18 2013.
- 'allow_unknown' option added.
Version 0.1.0
-------------
Released on March 15 2013.
Codename: 'Claw'.
- entering beta phase.
- support for Python 3.
- pep8 and pyflakes fixes (Harro van der Klauw).
- removed superflous typecheck for empty validator (Harro van der Klauw).
- 'ignore_none_values' option to ignore None values when type checking (Harro
van der Klauw).
- 'minlenght' and 'maxlength' now apply to lists as well (Harro van der Klauw).
Version 0.0.3
-------------
Released on January 29 2013
- when a list item fails, its offset is now returned along with the list name.
- 'transparent_schema_rules' option added.
- 'empty' rule for string fields.
- 'schema' rule on lists of arbitrary lenght (Martjin Vermaat).
- 'allowed' rule on strings (Martjin Vermaat).
- 'items' (dict) is now deprecated. Use the upgraded 'schema' rule instead.
- AUTHORS file added to sources.
- CHANGES file added to sources.
Version 0.0.2
-------------
Released on November 22 2012.
- Added support for addition and validation of custom data types.
- Several documentation improvements.
Version 0.0.1
-------------
Released on October 16 2012.
First public preview release.