From 5a23f37e64fd796138c7a25c0553684519491bf9 Mon Sep 17 00:00:00 2001 From: Fanilo-Nantenaina Date: Fri, 26 Dec 2025 13:04:30 +0300 Subject: [PATCH] fix: make client number field required in ClientCreateRequest --- api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api.py b/api.py index a3b9ce9..a036707 100644 --- a/api.py +++ b/api.py @@ -383,8 +383,8 @@ class ClientCreateRequest(BaseModel): description="Nom du client (CT_Intitule) - OBLIGATOIRE" ) - numero: Optional[str] = Field( - None, + numero: str = Field( + ..., max_length=17, description="Numéro client CT_Num (auto si None)" )