JSON validation Schema
Project description
# jsonvalidate
<a href="https://travis-ci.org/RobusGauli/jsonvalidate">
<img src="https://travis-ci.org/RobusGauli/jsonvalidate.svg?branch=master">
</a>
<a href="https://pypi.python.org/pypi/jsonvalidate">
<img src="https://img.shields.io/pypi/v/jsonvalidate.svg">
</a>
<a href="https://jsonvalidate.readthedocs.io/en/latest/?badge=latest">
<img src="https://readthedocs.org/projects/jsonvalidate/badge/?version=latest">
</a>
JSON validation Schema
* Free software: MIT license
* Documentation: https://jsonvalidate.readthedocs.io.
Features
--------
```python
schema = Object({
'name': String(),
'age': Integer(enums=[5, 6, 7]),
'address': Object({
'permanent': String(),
'temporary': String(min_length=3, enums=['asss', 's'])
})
})
payload = {
'name': 'robus',
'age': 342,
'address': {
'permanent': 'sd',
'temporary': 'asss'
}
}
print(schema.check(payload))
```
=======
History
=======
0.1.0 (2018-06-08)
------------------
* First release on PyPI.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
jsonvalidate-0.1.2.tar.gz
(15.1 kB
view hashes)
Built Distribution
Close
Hashes for jsonvalidate-0.1.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 973e78f78ae1db0c67d34552d8012d0ea47a3f98e807db21970f7673b15cc041 |
|
MD5 | 79d24253a37a22382882cb3ebf23e61b |
|
BLAKE2b-256 | 297a0b3cde87c4e94ba3ce6b38f2659a179feaf2d23da76a2d142d5978a2cd97 |