Skip to main content

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)

Uploaded Source

Built Distribution

jsonvalidate-0.1.2-py2.py3-none-any.whl (5.8 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page