Skip to content

Commit 18270c8

Browse files
committed
#296: Adds support for OpenAPI 3.1
1 parent f195bab commit 18270c8

21 files changed

+699
-308
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))")

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)