summaryrefslogtreecommitdiff
path: root/tests.rst
Commit message (Collapse)AuthorAgeFilesLines
* Return as many validation errors as possible.multiple_errorsAlec Thomas2011-10-201-6/+26
| | | | | | Errors are now returned in an InvalidList exception, which has the same interface as Invalid but also includes a .errors attribute with all encountered errors.
* Fixed the mistake of using type(schema) instead of type(data).Jack Kuan2011-08-111-2/+2
|
* Made dict and list work as type validators...Jack Kuan2011-08-111-0/+29
| | | | | | | | | | | | | | | | | 1. Made dict and list work as type validators so:: >>> Schema(dict)({'a': 1}) {'a': 1} >>> Schema(list)([1,2,3]) [1, 2, 3] 2. Validation now returns the correct type of instance for subclass of list or dict:: >>> class Dict(dict): ... pass >>> isinstance(Schema(Dict)(Dict(a=1)), Dict) True
* Improved README considerably.Alec Thomas2010-07-281-2/+0
|
* Add support for "extra" keys.Alec Thomas2010-07-271-4/+17
|
* *Vastly* improved error reporting.Alec Thomas2010-07-201-0/+42