Skip to content

Commit 5b4fe4e

Browse files
authored
Merge pull request #52 from mike-oakley/u/mike/fix-schema-validation-test
fix: Correct schema test assertion after Pydantic update.
2 parents cf742b4 + d6d6bb9 commit 5b4fe4e

File tree

3 files changed

+128
-105
lines changed

3 files changed

+128
-105
lines changed

openapi_pydantic/compat.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
]
1818

1919
PYDANTIC_MAJOR_VERSION = int(PYDANTIC_VERSION.split(".", 1)[0])
20+
PYDANTIC_MINOR_VERSION = int(PYDANTIC_VERSION.split(".")[1])
2021
PYDANTIC_V2 = PYDANTIC_MAJOR_VERSION >= 2
2122

2223
if TYPE_CHECKING:

0 commit comments

Comments
 (0)