From 58db4b096d7c90566d3d48d51b4665c01a591df6 Mon Sep 17 00:00:00 2001 From: Ben Beasley Date: Sun, 15 Sep 2024 17:32:53 -0400 Subject: [PATCH] :sparkles: 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 --- requirements/pyproject.txt | 11 +++++++---- tests/test_coordinate.py | 2 +- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/requirements/pyproject.txt b/requirements/pyproject.txt index aab552b6..a44249f2 100644 --- a/requirements/pyproject.txt +++ b/requirements/pyproject.txt @@ -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 @@ -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 @@ -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) diff --git a/tests/test_coordinate.py b/tests/test_coordinate.py index 199d988e..e75ab865 100644 --- a/tests/test_coordinate.py +++ b/tests/test_coordinate.py @@ -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',