Skip to main content

Hypothesis plugin for generating valid Open API documents

Project description

hypothesis-openapi

CI Coverage Version Python versions License

Hypothesis plugin for generating valid Open API documents.

Usage

from hypothesis import given
from hypothesis_openapi import openapis


@given(openapis(version="2.0"))
def test_openapi(spec):
    assert spec["swagger"] == "2.0"
    assert "info" in spec

License

The code in this project is licensed under MIT license. By contributing to hypothesis-openapi, you agree that your contributions will be licensed under its MIT license.

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

hypothesis_openapi-0.3.0.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hypothesis_openapi-0.3.0-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file hypothesis_openapi-0.3.0.tar.gz.

File metadata

  • Download URL: hypothesis_openapi-0.3.0.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for hypothesis_openapi-0.3.0.tar.gz
Algorithm Hash digest
SHA256 0fcd6f594ca9ef515be8b165217601d73ad4a1f1dae2323e28beccb2f1b904c6
MD5 366a98c64eb60f36361350ee4a707db6
BLAKE2b-256 ce794dbf12deedba2fe105d62315b23df30471cb94b3d75325715d02a3295839

See more details on using hashes here.

Provenance

The following attestation bundles were made for hypothesis_openapi-0.3.0.tar.gz:

Publisher: release.yml on Stranger6667/hypothesis-openapi

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file hypothesis_openapi-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for hypothesis_openapi-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 33aee0804d41e76bbf36da98fd7718de4f09fb8e98f2c8345ff57fd4e07adb99
MD5 17b3ab7385f3e7f69a68057e5674481a
BLAKE2b-256 80a37e893452fa75cc5c3c0120da3e98a23e638e2fdeb60d11e47bf711b6dd28

See more details on using hashes here.

Provenance

The following attestation bundles were made for hypothesis_openapi-0.3.0-py3-none-any.whl:

Publisher: release.yml on Stranger6667/hypothesis-openapi

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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