From b8a635972faaf1d2eeea0991b8f095a12d2265b9 Mon Sep 17 00:00:00 2001 From: Pietro Pasotti Date: Wed, 7 Feb 2024 14:52:55 +0100 Subject: [PATCH] deprecation warning --- interface_tester/interface_test.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/interface_tester/interface_test.py b/interface_tester/interface_test.py index 4c013a1..6616b2b 100644 --- a/interface_tester/interface_test.py +++ b/interface_tester/interface_test.py @@ -30,6 +30,11 @@ logger = logging.getLogger(__name__) _has_pydantic_v1 = pydantic.version.VERSION.split(".") <= ["2"] +if _has_pydantic_v1: + logger.warning( + "You seem to be using pydantic v1. " + "Please upgrade to v2, as compatibility may be dropped in a future version of pytest-interface-tester." + ) def _validate(model: pydantic.BaseModel, obj: dict):