Skip to content

Commit 58db4b0

Browse files
✨ Adjust test_json_schema() for Pydantic 2.9 (#215)
* 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 <yasserth19@gmail.com>
1 parent 55a01b2 commit 58db4b0

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

requirements/pyproject.txt

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# This file is autogenerated by pip-compile with Python 3.11
2+
# This file is autogenerated by pip-compile with Python 3.12
33
# by the following command:
44
#
55
# pip-compile --extra=all --no-emit-index-url --output-file=requirements/pyproject.txt pyproject.toml
@@ -12,9 +12,9 @@ phonenumbers==8.13.31
1212
# via pydantic-extra-types (pyproject.toml)
1313
pycountry==23.12.11
1414
# via pydantic-extra-types (pyproject.toml)
15-
pydantic==2.6.3
15+
pydantic==2.9.1
1616
# via pydantic-extra-types (pyproject.toml)
17-
pydantic-core==2.16.3
17+
pydantic-core==2.23.3
1818
# via pydantic
1919
python-dateutil==2.8.2
2020
# via
@@ -32,5 +32,8 @@ typing-extensions==4.10.0
3232
# via
3333
# pydantic
3434
# pydantic-core
35+
# pydantic-extra-types (pyproject.toml)
3536
tzdata==2024.1
36-
# via pendulum
37+
# via
38+
# pendulum
39+
# pydantic-extra-types (pyproject.toml)

tests/test_coordinate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ class Model(BaseModel):
189189
'type': 'object',
190190
}
191191
},
192-
'properties': {'value': {'allOf': [{'$ref': '#/$defs/Coordinate'}], 'title': 'Value'}},
192+
'properties': {'value': {'$ref': '#/$defs/Coordinate', 'title': 'Value'}},
193193
'required': ['value'],
194194
'title': 'Model',
195195
'type': 'object',

0 commit comments

Comments
 (0)