Skip to content
This repository was archived by the owner on Nov 13, 2022. It is now read-only.

Commit 0079798

Browse files
ePiratbrndnmtthws
authored andcommitted
Fix GitHub JSON and models
If the JSON would contain null, there is no way for the model generator to identify the type, so it would incorrectly use String here.
1 parent f527ac9 commit 0079798

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/api/models/github.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -427,8 +427,8 @@ pub struct PullRequestPullRequest {
427427
pub author_association: Option<String>,
428428
pub draft: Option<bool>,
429429
pub merged: Option<bool>,
430-
pub mergeable: Option<String>,
431-
pub rebaseable: Option<String>,
430+
pub mergeable: Option<bool>,
431+
pub rebaseable: Option<bool>,
432432
pub mergeable_state: Option<String>,
433433
pub merged_by: Option<PullRequestPullRequestMergedBy>,
434434
pub comments: Option<i64>,

src/api/models/json/github.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -712,8 +712,8 @@
712712
"author_association": "OWNER",
713713
"draft": false,
714714
"merged": false,
715-
"mergeable": null,
716-
"rebaseable": null,
715+
"mergeable": true,
716+
"rebaseable": true,
717717
"mergeable_state": "unknown",
718718
"merged_by": {
719719
"login": "brndnmtthws",

0 commit comments

Comments
 (0)