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.6.tar.gz
(15.2 kB
view hashes)
Built Distribution
Close
Hashes for jsonvalidate-0.1.6-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a241400ec80e6b1653f9100fea93a13e45f58879d4560d4124383033e776500b |
|
MD5 | a90f83fe8cb20243e9639556178b57c0 |
|
BLAKE2b-256 | 7b28ad226368ffebf5516dbbb3ebf79d843e63389eb96268a034e2ed6f91eb2f |