Skip to content
This repository was archived by the owner on Nov 19, 2023. It is now read-only.

Commit 37b2633

Browse files
committed
chore: Update supported Django versions
1 parent 09b7f71 commit 37b2633

File tree

6 files changed

+118
-49
lines changed

6 files changed

+118
-49
lines changed

.github/workflows/testing.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,11 @@ jobs:
4040
fail-fast: false
4141
matrix:
4242
python-version: [ "3.7", "3.8" , "3.9", "3.10" ]
43-
django-version: [ "2.2", "3.0", "3.1", "3.2" ]
43+
django-version: [ "3.0", "3.1", "3.2", "4.0" ]
44+
exclude:
45+
# Django v4 drops Python 3.6, and 3.7 support
46+
- django-version: 4.0
47+
python-version: 3.7
4448
steps:
4549
- uses: actions/checkout@v2
4650
- uses: actions/setup-python@v2

openapi_tester/schema_tester.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ def handle_one_of(self, schema_section: dict, data: Any, reference: str, **kwarg
183183
# date formats successfully, so a oneOf: date // datetime section
184184
# will succeed twice where it used to succeed once.
185185
return
186-
elif matches != 1:
186+
if matches != 1:
187187
raise DocumentationError(f"{VALIDATE_ONE_OF_ERROR.format(matches=matches)}\n\nReference: {reference}.oneOf")
188188

189189
def handle_any_of(self, schema_section: dict, data: Any, reference: str, **kwargs: Any):

0 commit comments

Comments
 (0)