A Django app used to validate request and response objects for django apis.
Project description
Validator is a Django app used to validate request and response objects for django apis.
Quick start
Add “validator” to your INSTALLED_APPS setting like this before your apps:
INSTALLED_APPS = [ ... 'validator', ]
Add “validator.middleware.Validator” to your MIDDLEWARE setting like this:
MIDDLEWARE = [ ... 'validator.middleware.Validator', 'django.middleware.common.CommonMiddleware', ... ]
Add SCHEMA variable in settings.py, which gives the location of the schema.json file.
SCHEMA = ‘ext_app/schema.json’
Add DOCUMENTATION variable in settings.py, which gives the location of the DOC.md file to be generated.
DOCUMENTATION = ‘ext_app/DOC.md’
To generate api documentation from schema.json, run
python3 manage.py gen_docs
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for django-json-schema-validator-0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7897991030947cfc6f79c24a788677bad6dac985c0af89fc57048e3053069dad |
|
MD5 | 7af53dc8e0568c72287879d391206937 |
|
BLAKE2b-256 | db068c28b9273bce9943281d83dc6bcc524214bddccf7245b9770d355bbaee50 |