Skip to content

Commit 4e3f0be

Browse files
committed
#296: Adds support for OpenAPI 3.1
1 parent f195bab commit 4e3f0be

28 files changed

+727
-315
lines changed

.github/workflows/python-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
uses: actions/setup-python@v2
2424
with:
2525
python-version: ${{ matrix.python-version }}
26-
26+
2727
- name: Get full Python version
2828
id: full-python-version
2929
run: echo ::set-output name=version::$(python -c "import sys; print('-'.join(str(v) for v in sys.version_info))")

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ nosetests.xml
4646
coverage.xml
4747
*.cover
4848
.hypothesis/
49+
tests/**/reports
4950

5051
# Translations
5152
*.mo
@@ -104,4 +105,4 @@ ENV/
104105
# Jetbrains project files
105106
.idea/
106107

107-
/reports/
108+
/reports/

openapi_core/spec/shortcuts.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,11 @@ def create_spec(
1111
spec_dict,
1212
spec_url="",
1313
handlers=default_handlers,
14+
spec_validator=openapi_v3_spec_validator,
1415
validate_spec=True,
1516
):
1617
if validate_spec:
17-
openapi_v3_spec_validator.validate(spec_dict, spec_url=spec_url)
18+
spec_validator.validate(spec_dict, spec_url=spec_url)
1819

1920
spec_resolver = RefResolver(spec_url, spec_dict, handlers=handlers)
2021
dereferencer = Dereferencer(spec_resolver)

0 commit comments

Comments
 (0)