Skip to content

Commit 3c2d8a1

Browse files
authored
🐛 Fix: fixed_at field schema error for WebhookCodeScanningAlert (#280)
1 parent d196e96 commit 3c2d8a1

22 files changed

+58
-30
lines changed

githubkit/versions/ghec_v2022_11_28/models/group_0631.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class WebhookCodeScanningAlertAppearedInBranchPropAlert(GitHubModel):
4646
dismissed_reason: Union[
4747
None, Literal["false positive", "won't fix", "used in tests"]
4848
] = Field(description="The reason for dismissing or closing the alert.")
49-
fixed_at: Missing[None] = Field(
49+
fixed_at: Missing[Union[_dt.datetime, None]] = Field(
5050
default=UNSET,
5151
description="The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
5252
)

githubkit/versions/ghec_v2022_11_28/models/group_0633.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class WebhookCodeScanningAlertClosedByUserPropAlert(GitHubModel):
4646
dismissed_reason: Union[
4747
None, Literal["false positive", "won't fix", "used in tests"]
4848
] = Field(description="The reason for dismissing or closing the alert.")
49-
fixed_at: Missing[None] = Field(
49+
fixed_at: Missing[Union[_dt.datetime, None]] = Field(
5050
default=UNSET,
5151
description="The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
5252
)

githubkit/versions/ghec_v2022_11_28/models/group_0639.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class WebhookCodeScanningAlertReopenedPropAlert(GitHubModel):
4646
dismissed_reason: Union[str, None] = Field(
4747
description="The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`."
4848
)
49-
fixed_at: Missing[None] = Field(
49+
fixed_at: Missing[Union[_dt.datetime, None]] = Field(
5050
default=UNSET,
5151
description="The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
5252
)

githubkit/versions/ghec_v2022_11_28/models/group_0641.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class WebhookCodeScanningAlertReopenedByUserPropAlert(GitHubModel):
4444
dismissed_reason: None = Field(
4545
description="The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`."
4646
)
47-
fixed_at: Missing[None] = Field(
47+
fixed_at: Missing[Union[_dt.datetime, None]] = Field(
4848
default=UNSET,
4949
description="The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
5050
)

githubkit/versions/ghec_v2022_11_28/models/group_0643.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class WebhookCodeScanningAlertUpdatedAssignmentPropAlert(GitHubModel):
4646
dismissed_reason: Union[
4747
None, Literal["false positive", "won't fix", "used in tests"]
4848
] = Field(description="The reason for dismissing or closing the alert.")
49-
fixed_at: Missing[None] = Field(
49+
fixed_at: Missing[Union[_dt.datetime, None]] = Field(
5050
default=UNSET,
5151
description="The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
5252
)

githubkit/versions/ghec_v2022_11_28/types/group_0631.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class WebhookCodeScanningAlertAppearedInBranchPropAlertType(TypedDict):
3232
dismissed_reason: Union[
3333
None, Literal["false positive", "won't fix", "used in tests"]
3434
]
35-
fixed_at: NotRequired[None]
35+
fixed_at: NotRequired[Union[_dt.datetime, None]]
3636
html_url: str
3737
most_recent_instance: NotRequired[
3838
Union[
@@ -64,7 +64,7 @@ class WebhookCodeScanningAlertAppearedInBranchPropAlertTypeForResponse(TypedDict
6464
dismissed_reason: Union[
6565
None, Literal["false positive", "won't fix", "used in tests"]
6666
]
67-
fixed_at: NotRequired[None]
67+
fixed_at: NotRequired[Union[str, None]]
6868
html_url: str
6969
most_recent_instance: NotRequired[
7070
Union[

githubkit/versions/ghec_v2022_11_28/types/group_0633.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class WebhookCodeScanningAlertClosedByUserPropAlertType(TypedDict):
3232
dismissed_reason: Union[
3333
None, Literal["false positive", "won't fix", "used in tests"]
3434
]
35-
fixed_at: NotRequired[None]
35+
fixed_at: NotRequired[Union[_dt.datetime, None]]
3636
html_url: str
3737
most_recent_instance: NotRequired[
3838
Union[
@@ -70,7 +70,7 @@ class WebhookCodeScanningAlertClosedByUserPropAlertTypeForResponse(TypedDict):
7070
dismissed_reason: Union[
7171
None, Literal["false positive", "won't fix", "used in tests"]
7272
]
73-
fixed_at: NotRequired[None]
73+
fixed_at: NotRequired[Union[str, None]]
7474
html_url: str
7575
most_recent_instance: NotRequired[
7676
Union[

githubkit/versions/ghec_v2022_11_28/types/group_0639.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class WebhookCodeScanningAlertReopenedPropAlertType(TypedDict):
3030
]
3131
dismissed_comment: NotRequired[Union[str, None]]
3232
dismissed_reason: Union[str, None]
33-
fixed_at: NotRequired[None]
33+
fixed_at: NotRequired[Union[_dt.datetime, None]]
3434
html_url: str
3535
instances_url: NotRequired[str]
3636
most_recent_instance: NotRequired[
@@ -59,7 +59,7 @@ class WebhookCodeScanningAlertReopenedPropAlertTypeForResponse(TypedDict):
5959
]
6060
dismissed_comment: NotRequired[Union[str, None]]
6161
dismissed_reason: Union[str, None]
62-
fixed_at: NotRequired[None]
62+
fixed_at: NotRequired[Union[str, None]]
6363
html_url: str
6464
instances_url: NotRequired[str]
6565
most_recent_instance: NotRequired[

githubkit/versions/ghec_v2022_11_28/types/group_0641.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class WebhookCodeScanningAlertReopenedByUserPropAlertType(TypedDict):
2828
dismissed_by: None
2929
dismissed_comment: NotRequired[Union[str, None]]
3030
dismissed_reason: None
31-
fixed_at: NotRequired[None]
31+
fixed_at: NotRequired[Union[_dt.datetime, None]]
3232
html_url: str
3333
most_recent_instance: NotRequired[
3434
Union[
@@ -55,7 +55,7 @@ class WebhookCodeScanningAlertReopenedByUserPropAlertTypeForResponse(TypedDict):
5555
dismissed_by: None
5656
dismissed_comment: NotRequired[Union[str, None]]
5757
dismissed_reason: None
58-
fixed_at: NotRequired[None]
58+
fixed_at: NotRequired[Union[str, None]]
5959
html_url: str
6060
most_recent_instance: NotRequired[
6161
Union[

githubkit/versions/ghec_v2022_11_28/types/group_0643.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class WebhookCodeScanningAlertUpdatedAssignmentPropAlertType(TypedDict):
3232
dismissed_reason: Union[
3333
None, Literal["false positive", "won't fix", "used in tests"]
3434
]
35-
fixed_at: NotRequired[None]
35+
fixed_at: NotRequired[Union[_dt.datetime, None]]
3636
html_url: str
3737
most_recent_instance: NotRequired[
3838
Union[
@@ -64,7 +64,7 @@ class WebhookCodeScanningAlertUpdatedAssignmentPropAlertTypeForResponse(TypedDic
6464
dismissed_reason: Union[
6565
None, Literal["false positive", "won't fix", "used in tests"]
6666
]
67-
fixed_at: NotRequired[None]
67+
fixed_at: NotRequired[Union[str, None]]
6868
html_url: str
6969
most_recent_instance: NotRequired[
7070
Union[

0 commit comments

Comments
 (0)