Skip to content

Commit

Permalink
✨ Adjust test_json_schema() for Pydantic 2.9 (#215)
Browse files Browse the repository at this point in the history
* Adjust test_json_schema() for Pydantic 2.9

Fixes #213.

* Update pydantic/pydantic-core in requirements/pyproject.txt

* Update requirements/pyproject.txt

---------

Co-authored-by: Yasser Tahiri <[email protected]>
  • Loading branch information
musicinmybrain and yezz123 authored Sep 15, 2024
1 parent 55a01b2 commit 58db4b0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
11 changes: 7 additions & 4 deletions requirements/pyproject.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# This file is autogenerated by pip-compile with Python 3.11
# This file is autogenerated by pip-compile with Python 3.12
# by the following command:
#
# pip-compile --extra=all --no-emit-index-url --output-file=requirements/pyproject.txt pyproject.toml
Expand All @@ -12,9 +12,9 @@ phonenumbers==8.13.31
# via pydantic-extra-types (pyproject.toml)
pycountry==23.12.11
# via pydantic-extra-types (pyproject.toml)
pydantic==2.6.3
pydantic==2.9.1
# via pydantic-extra-types (pyproject.toml)
pydantic-core==2.16.3
pydantic-core==2.23.3
# via pydantic
python-dateutil==2.8.2
# via
Expand All @@ -32,5 +32,8 @@ typing-extensions==4.10.0
# via
# pydantic
# pydantic-core
# pydantic-extra-types (pyproject.toml)
tzdata==2024.1
# via pendulum
# via
# pendulum
# pydantic-extra-types (pyproject.toml)
2 changes: 1 addition & 1 deletion tests/test_coordinate.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ class Model(BaseModel):
'type': 'object',
}
},
'properties': {'value': {'allOf': [{'$ref': '#/$defs/Coordinate'}], 'title': 'Value'}},
'properties': {'value': {'$ref': '#/$defs/Coordinate', 'title': 'Value'}},
'required': ['value'],
'title': 'Model',
'type': 'object',
Expand Down

0 comments on commit 58db4b0

Please sign in to comment.