Skip to content

Commit dd10dd9

Browse files
committed
Fixed calendar type
Signed-off-by: Toomore Chiang <[email protected]>
1 parent f861f81 commit dd10dd9

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

api/apistructs/items.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class ProjectItem(BaseModel):
1313
desc: str | None = Field(description='desc')
1414
action_date: date | None = Field(description='action date')
1515
owners: list[str] | None = Field(description='list of owners')
16-
calendar: HttpUrl | None = Field(description='calendar url')
16+
calendar: str | None = Field(description='calendar url')
1717
gitlab_project_id: str | None = Field(description='gitlab project id')
1818
mailling_leader: EmailStr | None = Field(
1919
description='mailing list of leader')

api/apistructs/projects.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class ProjectItemUpdateInput(BaseModel):
3939
name: str | None = Field(description='project name')
4040
desc: str | None = Field(description='desc')
4141
action_date: date | None = Field(description='action date')
42-
calendar: HttpUrl | None = Field(description='calendar url')
42+
calendar: str | None = Field(description='calendar url')
4343
gitlab_project_id: str | None = Field(description='gitlab project id')
4444
mailling_leader: EmailStr | None = Field(
4545
description='mailing list of leader')

structs/projects.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class ProjectBase(BaseModel):
3232
owners: list[str] = Field(description='list of owners')
3333
action_date: datetime = Field(description='action date')
3434
desc: str | None = Field(description='desc')
35-
calendar: HttpUrl | None = Field(description='calendar url')
35+
calendar: str | None = Field(description='calendar url')
3636
gitlab_project_id: str | None = Field(description='gitlab project id')
3737
mailling_leader: EmailStr | None = Field(
3838
description='mailing list of leader')
@@ -58,7 +58,7 @@ class ProjectBaseUpdate(BaseModel):
5858
name: str | None = Field(description='project name')
5959
action_date: datetime | None = Field(description='action date')
6060
desc: str | None = Field(description='desc')
61-
calendar: HttpUrl | None = Field(description='calendar url')
61+
calendar: str | None = Field(description='calendar url')
6262
gitlab_project_id: str | None = Field(description='gitlab project id')
6363
mailling_leader: EmailStr | None = Field(
6464
description='mailing list of leader')

0 commit comments

Comments
 (0)