Skip to content

Commit

Permalink
fix: remove optional typing in models
Browse files Browse the repository at this point in the history
  • Loading branch information
TheoPascoli committed Sep 30, 2024
1 parent fcace50 commit 0f4d6e0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class LinkInfoProperties(BaseModel):

class Config:
alias_generator = to_kebab_case
allow_population_by_field_name = True
populate_by_name = True


class LinkInfoProperties820(LinkInfoProperties):
Expand All @@ -58,7 +58,7 @@ class LinkInfoProperties820(LinkInfoProperties):

class Config:
alias_generator = to_kebab_case
allow_population_by_field_name = True
populate_by_name = True

@field_validator("filter_synthesis", "filter_year_by_year", mode="before")
def validate_individual_filters(cls, value: Optional[str]) -> Optional[str]:
Expand Down

0 comments on commit 0f4d6e0

Please sign in to comment.