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.3.tar.gz
(15.1 kB
view hashes)
Built Distribution
Close
Hashes for jsonvalidate-0.1.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8c939fd0c01f306b9c63bba9b1eb7a392af8d28a592f2694398d2e1592693d1 |
|
MD5 | c44504daf3d4d11740bc9f3dd1426423 |
|
BLAKE2b-256 | 140bb2b82c30e41e044ac25d3475cf9904a9c8e8c42dbe7758fd34f1654a10cf |