Skip to main content

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

  1. Add “validator” to your INSTALLED_APPS setting like this before your apps:

    INSTALLED_APPS = [
        ...
        'validator',
    ]
  2. Add “validator.middleware.Validator” to your MIDDLEWARE setting like this:

    MIDDLEWARE = [
        ...
        'validator.middleware.Validator',
        'django.middleware.common.CommonMiddleware',
        ...
    ]
  3. Add SCHEMA variable in settings.py, which gives the location of the schema.json file.

    SCHEMA = ‘ext_app/schema.json’

  4. Add DOCUMENTATION variable in settings.py, which gives the location of the DOC.md file to be generated.

    DOCUMENTATION = ‘ext_app/DOC.md’

  5. To generate api documentation from schema.json, run

    python3 manage.py gen_docs

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

django-json-schema-validator-0.1.1.tar.gz (4.1 kB view details)

Uploaded Source

File details

Details for the file django-json-schema-validator-0.1.1.tar.gz.

File metadata

  • Download URL: django-json-schema-validator-0.1.1.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for django-json-schema-validator-0.1.1.tar.gz
Algorithm Hash digest
SHA256 733f5499cecb0ef96fc11c272801cf519bf01659a992c8e643615a9cb736dd60
MD5 3e3da3edd16d61db03175270decc074a
BLAKE2b-256 b999a64611213bf9a7c901b2e16ff381786da2bf9e73bc6cb9c66307c63e42d2

See more details on using hashes here.

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