From 45116fbb8c2fa3b52bcbb26449760965a5164bb6 Mon Sep 17 00:00:00 2001 From: Guillaume G Date: Mon, 13 Mar 2023 02:20:48 +0100 Subject: [PATCH] Adding a title to customer create schema --- back/app/entity/schemas.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/back/app/entity/schemas.py b/back/app/entity/schemas.py index 7adcfe38..abe781f9 100644 --- a/back/app/entity/schemas.py +++ b/back/app/entity/schemas.py @@ -13,6 +13,9 @@ class EntityCreate(Writer): entity_data: Individual | Corporation | Institution = Field(..., discriminator='type') address: str = Field(default="", title='Adresse') + class Config: + title = "Création d'un client" + class EntityUpdate(EntityCreate): pass