Skip to content

Commit

Permalink
Merge pull request #52 from mike-oakley/u/mike/fix-schema-validation-…
Browse files Browse the repository at this point in the history
…test

fix: Correct schema test assertion after Pydantic update.
  • Loading branch information
mike-oakley authored Dec 3, 2024
2 parents cf742b4 + d6d6bb9 commit 5b4fe4e
Show file tree
Hide file tree
Showing 3 changed files with 128 additions and 105 deletions.
1 change: 1 addition & 0 deletions openapi_pydantic/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
]

PYDANTIC_MAJOR_VERSION = int(PYDANTIC_VERSION.split(".", 1)[0])
PYDANTIC_MINOR_VERSION = int(PYDANTIC_VERSION.split(".")[1])
PYDANTIC_V2 = PYDANTIC_MAJOR_VERSION >= 2

if TYPE_CHECKING:
Expand Down
Loading

0 comments on commit 5b4fe4e

Please sign in to comment.