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.4.tar.gz
(15.2 kB
view hashes)
Built Distribution
Close
Hashes for jsonvalidate-0.1.4-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d360a309d6c8072b9a313e814205afc586f9d6ffeb48a8441ea308bb7ec6e93c |
|
MD5 | 59be334cdb1b8d26a83f23f44f7c22ab |
|
BLAKE2b-256 | 840ce7c1335417bab4ffb8bb9e04bf808c14adea92a0f100c854766e9b953ef2 |