| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|\ |
|
| |
| |
| |
| | |
Python is annoying.
|
| | |
|
| | |
|
| | |
|
| |\
| | |
| | | |
Updated changelog with 0.11.5 release
|
| |/ |
|
| | |
|
| | |
|
| |
| |
| |
| | |
Fixes #347
|
| |
| |
| |
| |
| | |
Also removes support for 3.4 and 3.5 since they are not available on Travis
anymore.
|
| | |
|
| |
| |
| | |
Python 3.3 has reached end-of-life: https://devguide.python.org/#status-of-python-branches (2017-09-29)
|
| |
| |
| | |
closes #124
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Without the patch, setup.py fails to run under Python 3.x with pypandoc installed:
```
Traceback (most recent call last):
File "setup.py", line 16, in <module>
f.write(long_description)
TypeError: write() argument must be str, not bytes
```
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| | |
Marker class in /voluptuous/schema_builder.py needed to have the __lt__() function
modified in order to compare against regular strings as well.
This will allow the usage of Voluptuous Optional objects as keys in dicts alongside
strings and int.
|
| |
| |
| | |
The change in pull request #324 can be backward incompatible if a default value does not validate against the schema
|
| | |
|
| | |
|
| |
| |
| |
| |
| | |
The Any class can be compiled by voluptuous whereas Maybe cannot. Since it's
just an alias to Any(None, v), replace it with that directly.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* Allow to use nested schema
This allows to refer to the current schema using voluptuous.Self and have
nested definitions.
Fixes #128
* Allow any validator to be compiled
This allows any validator to be compiled by implementing the
__voluptuous_compile__ method.
This avoids having voluptuous.Any and voluptuous.All defining new Schema for
sub-validators: they can be compiled recursively using the same parent schema.
This solves the recursive Self case.
Fixes #18
|
| |
| |
| | |
Adding SomeOf validator and corresponding tests.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* add test for schema equality and fix Schema.__eq__ to deal with dicts properly (fixes #315)
* add negative equality tests, implement Schema.__ne__ method to support != operator
This fills in missing test coverage to ensure the __eq__ method does not
return True in some potentially unexpected cases (these tests would fail
before be867c5).
Previously only the __eq__ method was implemented, which could lead to
surprising behavior e.g.:
Schema('foo') == Schema('foo') # True
Schema('foo') != Schema('foo') # True
This adds the __ne__ method so that these operators are complementary as
one might expect.
|
| |
| |
| |
| |
| |
| | |
This introduces the class method Schema.infer, to infer a Schema from
concrete data. This will be useful for converting existing known-good
data (e.g. API responses) into enforceable schemas.
|
| |
| |
| |
| |
| |
| | |
Validation on an empty list was not raising any exception when given values
but an empty dict was. Make it uniform and make them both raise a
MultipleInvalid exception on unwanted values.
|
| |
| |
| |
| | |
This reverts commit 55fe26de1eef7d248248aa25194d9fb517e51ca7.
|
| |\
| | |
| | | |
Add description to Marker
|
| |/ |
|
| | |
|
| |\
| | |
| | | |
Fixed curl command in README
|
| |/ |
|
| |\
| | |
| | | |
Sync references to Python versions
|
| |/
| |
| |
| |
| | |
Bring `setup.py`, `tox.ini`, and `.travis.yml` in sync with respect to
supported Python versions.
|
| |\
| | |
| | | |
Drop support for end-of-life Python versions
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Per the [dev
guide](https://docs.python.org/devguide/#status-of-python-branches), the
following versions have been end of lifed:
- 2.6: 2013-10-29
- 3.1: 2012-04-11
- 3.2: 2016-02-20
Removing support for EOL versions should make future maintenance easier.
|
| |\
| | |
| | | |
Declare support for Python 3.6
|
| |/
| |
| |
| |
| | |
- Add 3.6 to the Travis-CI and tox configurations
- Add 3.6 language classifier to `setup.py`
|
| | |
|
| |\
| | |
| | | |
absolute import
|
| |/ |
|
| |
| |
| | |
Fixes #288.
|
| |\
| | |
| | | |
Allow all schemas in Maybe
|
| | | |
|
| |/ |
|
| | |
|
| | |
|