Hypothesis plugin for generating valid Open API documents.
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
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.