Skip to main content

Request and response validation compatible with swagger.

Project description

https://img.shields.io/travis/planetlabs/spectastic.svg https://img.shields.io/pypi/v/spectastic.svg

Request and response validation via Open API/Swagger schemas.

Features

  • Validation of Request-like objects against Open API/Swagger schemas.

TODO

  • Response validation.

  • Query parameter validation.

  • collectionformat support that ties into werkzeug’s datastructures.

  • Authorization support not baked in.

History

0.3.1 (2019-08-20)

  • Documentation update.

0.3.0 (2019-08-20)

  • Using six to shim python 2/3 compatibility.

0.2.5 (2016-05-09)

  • An empty string is equivalent to a request body of None as far as spectastic is concerned.

0.2.4 (2016-03-25)

  • Ignore unrecognized query parameters.

0.2.3 (2016-03-24)

  • Fix an issue with discriminators inside of allOf.

0.2.2 (2016-03-24)

  • Addressed an issue when validating objects with more than one required field.

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

spectastic-0.3.1.tar.gz (28.9 kB view details)

Uploaded Source

Built Distribution

spectastic-0.3.1-py2.py3-none-any.whl (11.2 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file spectastic-0.3.1.tar.gz.

File metadata

  • Download URL: spectastic-0.3.1.tar.gz
  • Upload date:
  • Size: 28.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.34.0 CPython/3.7.3

File hashes

Hashes for spectastic-0.3.1.tar.gz
Algorithm Hash digest
SHA256 a2e2d86e3136f382eb6da6d7008f0d5d99c9cc74801870038780c632c704c04f
MD5 2d218b737f6910775b3412e9b4d7d851
BLAKE2b-256 227a08b624ff2774f1762fc8e7a0acb46c0b1d0dbb936363aa16f9d66924b16e

See more details on using hashes here.

Provenance

File details

Details for the file spectastic-0.3.1-py2.py3-none-any.whl.

File metadata

  • Download URL: spectastic-0.3.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 11.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.34.0 CPython/3.7.3

File hashes

Hashes for spectastic-0.3.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 79141327291e0ac04e64bfbdee71484f3f385f790a858c95d952af0ce12c44f9
MD5 02d64a0728b3448885ee9ebcd1b64688
BLAKE2b-256 b8e808482b5c26911c45c5a38ca25d47d6ab3d966bee2cb82cd6a8302fe91360

See more details on using hashes here.

Provenance

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