Skip to content

Commit

Permalink
Merge pull request #6 from alodieboissonnet/fix/add_missing_location_…
Browse files Browse the repository at this point in the history
…to_decision_full

fix(decisionFull): add missing location field
  • Loading branch information
antoinejeannot authored Oct 19, 2024
2 parents f51b259 + da2f7c2 commit ce334e6
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 ce334e6

Please sign in to comment.