Skip to content

Commit

Permalink
fix(decisionFull): add missing location field
Browse files Browse the repository at this point in the history
  • Loading branch information
alodieboissonnet committed Oct 19, 2024
1 parent f51b259 commit da2f7c2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions jurisprudence/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
Expand Down Expand Up @@ -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()),
Expand Down

0 comments on commit da2f7c2

Please sign in to comment.