https://github.com/stranger6667/hypothesis-openapi
Hypothesis plugin for generating valid Open API documents
https://github.com/stranger6667/hypothesis-openapi
Last synced: 4 months ago
JSON representation
Hypothesis plugin for generating valid Open API documents
- Host: GitHub
- URL: https://github.com/stranger6667/hypothesis-openapi
- Owner: Stranger6667
- License: mit
- Created: 2024-05-15T05:48:04.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-07-20T00:28:28.000Z (12 months ago)
- Last Synced: 2025-07-20T02:54:45.681Z (12 months ago)
- Language: Python
- Size: 60.5 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# hypothesis-openapi
[](https://github.com/Stranger6667/hypothesis-openapi/actions/workflows/ci.yml)
[](https://codecov.io/gh/Stranger6667/hypothesis-openapi/branch/main)
[](https://pypi.org/project/hypothesis-openapi/)
[](https://pypi.org/project/hypothesis-openapi/)
[](https://opensource.org/licenses/MIT)
Hypothesis plugin for generating valid Open API documents.
## Usage
```python
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](https://opensource.org/licenses/MIT).
By contributing to `hypothesis-openapi`, you agree that your contributions will be licensed under its MIT license.