summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Return as many validation errors as possible.multiple_errorsAlec Thomas2011-10-203-52/+106
| | | | | | 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.
* Merge pull request #2 from kjkuan/masterAlec Thomas2011-08-142-8/+37
|\ | | | | dict and list as type validators; validation returns the correct type of instance.
| * Fixed the mistake of using type(schema) instead of type(data).Jack Kuan2011-08-112-4/+4
| |
| * Made dict and list work as type validators...Jack Kuan2011-08-112-8/+37
|/ | | | | | | | | | | | | | | | | 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
* Added path-based validation.Daniel Cooper2010-11-251-0/+31
| | | | | | - isdir(): verifies if the specified path exists and is a directory. - isfile(): verifies if the specified path exists and is a file. - path_exists(): verifies if the specified path exists.
* Add a bunch of string transforms.Alec Thomas2010-11-231-1/+42
|
* Allow None in schemas.Alec Thomas2010-08-011-3/+4
|
* Fix an oversight with helper functions using validate_scalar().Alec Thomas2010-08-011-4/+4
|
* Document how types in the schema are handled.Alec Thomas2010-07-281-1/+15
|
* More documentation updates.Alec Thomas2010-07-281-36/+60
|
* Move ToC below introduction.0.3Alec Thomas2010-07-281-2/+2
|
* Bump version to 0.3.Alec Thomas2010-07-281-1/+1
|
* Implement and document required+extra keys.Alec Thomas2010-07-282-23/+92
|
* Improved README considerably.Alec Thomas2010-07-283-82/+238
|
* Add support for "extra" keys.Alec Thomas2010-07-273-22/+103
|
* Added two new validators: range() and length().Alec Thomas2010-07-211-0/+25
|
* Add BSD COPYING file.Alec Thomas2010-07-201-0/+25
|
* Fix syntax of MANIFEST.in.Alec Thomas2010-07-201-1/+1
|
* Add MANIFEST.in.Alec Thomas2010-07-201-0/+1
|
* Bump version to 0.2.0.2Alec Thomas2010-07-201-3/+3
|
* *Vastly* improved error reporting.Alec Thomas2010-07-203-122/+273
|
* Missed a reference to README.rst.0.1Alec Thomas2010-07-152-3/+3
|
* Add example to README and convert to RST.Alec Thomas2010-07-153-1/+44
|
* Add __version__ and __author__ support.Alec Thomas2010-07-152-3/+13
|
* Initial import.Alec Thomas2010-07-154-0/+503
|
* first commitAlec Thomas2010-07-151-0/+0