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
Metadata
Release files for django-json-schema-validator 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-json-schema-validator-0.1.1.tar.gz | 4.1 kB | Without provenance | Details for django-json-schema-validator-0.1.1.tar.gz |
Release files / django-json-schema-validator-0.1.1.tar.gz
| Download URL | django-json-schema-validator-0.1.1.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
733f5499cecb0ef96fc11c272801cf519bf01659a992c8e643615a9cb736dd60
|
|
BLAKE2b-256 checksum How to use checksums |
b999a64611213bf9a7c901b2e16ff381786da2bf9e73bc6cb9c66307c63e42d2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.8.0 tqdm/4.43.0 CPython/3.6.9
|
Security for django-json-schema-validator 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.