From da2f7c2f0009a439040610a92445f68454dfbcbc Mon Sep 17 00:00:00 2001 From: Alodie Date: Sat, 19 Oct 2024 11:42:09 +0200 Subject: [PATCH] fix(decisionFull): add missing location field --- jurisprudence/schema.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jurisprudence/schema.py b/jurisprudence/schema.py index 6ff2da1..5ab9008 100644 --- a/jurisprudence/schema.py +++ b/jurisprudence/schema.py @@ -137,6 +137,7 @@ class DecisionFull(BaseModel): numbers: list[str] = Field( description="Tous les numéros de pourvoi de la décision." ) + location: str | None = Field(None, description="Siège ayant rendu la décision.") formation: str | None = Field(None, description="Clé de la formation.") type: str | None = Field(None, description="Clé du type de décision.") decision_date: datetime.date = Field(description="Date de création de la décision.") @@ -363,6 +364,7 @@ def serialize_timestamp(self, timestamp: datetime.datetime | None): pa.field("decision_date", pa.string()), pa.field("themes", pa.list_(pa.string())), pa.field("number", pa.string()), + pa.field("location", pa.string()), pa.field("solution", pa.string()), pa.field("ecli", pa.string()), pa.field("chamber", pa.string()),