From 692e0e359e1a60ba1471cc4a4af15eb7d65a05ab Mon Sep 17 00:00:00 2001 From: lebaudantoine Date: Mon, 2 Mar 2026 11:15:53 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9E=95(backend)=20install=20pydantic=20and?= =?UTF-8?q?=20django-pydantic-field=20to=20strengthen=20API?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Super useful for validation when handling unstructured dictionaries. Follow qbey's recommendation and align with the suitenumerique/conversation project approach to improve schema validation and data integrity. --- src/backend/pyproject.toml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/backend/pyproject.toml b/src/backend/pyproject.toml index e20ce492..9c6c4c31 100644 --- a/src/backend/pyproject.toml +++ b/src/backend/pyproject.toml @@ -39,6 +39,7 @@ dependencies = [ "django-redis==6.0.0", "django-storages[s3]==1.14.6", "django-timezone-field>=5.1", + "django-pydantic-field==0.5.4", "django==5.2.11", "djangorestframework==3.16.1", "drf_spectacular==0.29.0", @@ -50,6 +51,7 @@ dependencies = [ "markdown==3.10.2", "nested-multipart-parser==1.6.0", "psycopg[binary]==3.3.2", + "pydantic==2.12.4", "PyJWT==2.11.0", "python-frontmatter==1.1.0", "requests==2.32.5",