We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ac95c72 commit f6172d9Copy full SHA for f6172d9
2 files changed
setup.py
@@ -32,7 +32,8 @@
32
'pytest-cov >= 2.6.1, < 3.0.0',
33
'mypy >= 0.701, < 0.800',
34
'openfisca-country-template >= 3.10.0, < 4.0.0',
35
- 'openfisca-extension-template >= 1.2.0rc0, < 2.0.0'
+ 'openfisca-extension-template >= 1.2.0rc0, < 2.0.0',
36
+ 'openapi-spec-validator >= 0.3.0',
37
] + api_requirements
38
39
setup(
tests/web_api/test_spec.py
@@ -6,6 +6,8 @@
6
import dpath
7
from . import subject
8
9
+from openapi_spec_validator import validate_spec
10
+
11
12
def assert_items_equal(x, y):
13
assert sorted(x) == sorted(y)
@@ -55,3 +57,7 @@ def test_situation_definition():
55
57
56
58
def test_host():
59
assert 'http' not in body['host']
60
61
62
+def test_respects_spec():
63
+ validate_spec(body)
0 commit comments