Skip to content

Commit

Permalink
Make schedule schema require at least one character.
Browse files Browse the repository at this point in the history
  • Loading branch information
MelissaAutumn committed Apr 19, 2024
1 parent e46e1d3 commit f24c7e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/appointment/database/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ class Config:

class ScheduleBase(BaseModel):
active: bool | None = True
name: str
name: str = Field(min_length=1)
calendar_id: int
location_type: LocationType | None = LocationType.inperson
location_url: str | None = None
Expand Down

0 comments on commit f24c7e4

Please sign in to comment.