Skip to content

Commit

Permalink
Fixed calendar type
Browse files Browse the repository at this point in the history
Signed-off-by: Toomore Chiang <toomore0929@gmail.com>
  • Loading branch information
toomore committed Oct 15, 2022
1 parent f861f81 commit dd10dd9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion api/apistructs/items.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class ProjectItem(BaseModel):
desc: str | None = Field(description='desc')
action_date: date | None = Field(description='action date')
owners: list[str] | None = Field(description='list of owners')
calendar: HttpUrl | None = Field(description='calendar url')
calendar: str | None = Field(description='calendar url')
gitlab_project_id: str | None = Field(description='gitlab project id')
mailling_leader: EmailStr | None = Field(
description='mailing list of leader')
Expand Down
2 changes: 1 addition & 1 deletion api/apistructs/projects.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class ProjectItemUpdateInput(BaseModel):
name: str | None = Field(description='project name')
desc: str | None = Field(description='desc')
action_date: date | None = Field(description='action date')
calendar: HttpUrl | None = Field(description='calendar url')
calendar: str | None = Field(description='calendar url')
gitlab_project_id: str | None = Field(description='gitlab project id')
mailling_leader: EmailStr | None = Field(
description='mailing list of leader')
Expand Down
4 changes: 2 additions & 2 deletions structs/projects.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class ProjectBase(BaseModel):
owners: list[str] = Field(description='list of owners')
action_date: datetime = Field(description='action date')
desc: str | None = Field(description='desc')
calendar: HttpUrl | None = Field(description='calendar url')
calendar: str | None = Field(description='calendar url')
gitlab_project_id: str | None = Field(description='gitlab project id')
mailling_leader: EmailStr | None = Field(
description='mailing list of leader')
Expand All @@ -58,7 +58,7 @@ class ProjectBaseUpdate(BaseModel):
name: str | None = Field(description='project name')
action_date: datetime | None = Field(description='action date')
desc: str | None = Field(description='desc')
calendar: HttpUrl | None = Field(description='calendar url')
calendar: str | None = Field(description='calendar url')
gitlab_project_id: str | None = Field(description='gitlab project id')
mailling_leader: EmailStr | None = Field(
description='mailing list of leader')
Expand Down

0 comments on commit dd10dd9

Please sign in to comment.