Skip to content

Commit 7023f50

Browse files
authored
feat: author_association schema (#26)
1 parent 940ac8c commit 7023f50

File tree

3 files changed

+95
-71
lines changed

3 files changed

+95
-71
lines changed

cache/openapi-schema.json

Lines changed: 69 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"openapi": "3.0.3",
33
"info": {
4-
"version": "2.4.0",
4+
"version": "2.4.1",
55
"title": "GitHub's official OpenAPI spec + Octokit extension",
66
"description": "OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs",
77
"license": { "name": "MIT", "url": "https://spdx.org/licenses/MIT" },
@@ -38862,6 +38862,22 @@
3886238862
"updated_at"
3886338863
]
3886438864
},
38865+
"author_association": {
38866+
"title": "author_association",
38867+
"type": "string",
38868+
"example": "OWNER",
38869+
"description": "How the author is associated with the repository.",
38870+
"enum": [
38871+
"COLLABORATOR",
38872+
"CONTRIBUTOR",
38873+
"FIRST_TIMER",
38874+
"FIRST_TIME_CONTRIBUTOR",
38875+
"MANNEQUIN",
38876+
"MEMBER",
38877+
"NONE",
38878+
"OWNER"
38879+
]
38880+
},
3886538881
"issue-simple": {
3886638882
"title": "Issue Simple",
3886738883
"description": "Issue Simple",
@@ -38975,7 +38991,9 @@
3897538991
"format": "date-time",
3897638992
"example": "2011-04-22T13:33:48Z"
3897738993
},
38978-
"author_association": { "type": "string" },
38994+
"author_association": {
38995+
"$ref": "#/components/schemas/author_association"
38996+
},
3897938997
"body_html": { "type": "string" },
3898038998
"body_text": { "type": "string" },
3898138999
"timeline_url": { "type": "string", "format": "uri" },
@@ -39078,17 +39096,7 @@
3907839096
},
3907939097
"issue_url": { "type": "string", "format": "uri" },
3908039098
"author_association": {
39081-
"type": "string",
39082-
"enum": [
39083-
"collaborator",
39084-
"contributor",
39085-
"first_timer",
39086-
"first_time_contributor",
39087-
"mannequin",
39088-
"member",
39089-
"none",
39090-
"owner"
39091-
]
39099+
"$ref": "#/components/schemas/author_association"
3909239100
},
3909339101
"performed_via_github_app": {
3909439102
"nullable": true,
@@ -39382,7 +39390,9 @@
3938239390
"format": "date-time",
3938339391
"example": "2011-04-18T23:23:56Z"
3938439392
},
39385-
"author_association": { "type": "string" }
39393+
"author_association": {
39394+
"$ref": "#/components/schemas/author_association"
39395+
}
3938639396
},
3938739397
"required": [
3938839398
"url",
@@ -39568,7 +39578,9 @@
3956839578
"nullable": true,
3956939579
"allOf": [{ "$ref": "#/components/schemas/integration" }]
3957039580
},
39571-
"author_association": { "type": "string" },
39581+
"author_association": {
39582+
"$ref": "#/components/schemas/author_association"
39583+
},
3957239584
"reactions": { "$ref": "#/components/schemas/reaction-rollup" }
3957339585
},
3957439586
"required": [
@@ -44248,7 +44260,9 @@
4424844260
},
4424944261
"created_at": { "type": "string", "format": "date-time" },
4425044262
"updated_at": { "type": "string", "format": "date-time" },
44251-
"author_association": { "type": "string" },
44263+
"author_association": {
44264+
"$ref": "#/components/schemas/author_association"
44265+
},
4425244266
"reactions": { "$ref": "#/components/schemas/reaction-rollup" }
4425344267
},
4425444268
"required": [
@@ -44498,7 +44512,9 @@
4449844512
"self"
4449944513
]
4450044514
},
44501-
"author_association": { "type": "string", "example": "OWNER" },
44515+
"author_association": {
44516+
"$ref": "#/components/schemas/author_association"
44517+
},
4450244518
"draft": {
4450344519
"description": "Indicates whether or not the pull request is a draft.",
4450444520
"example": false,
@@ -46035,7 +46051,9 @@
4603546051
"$ref": "#/components/schemas/issue-event-project-card"
4603646052
},
4603746053
"rename": { "$ref": "#/components/schemas/issue-event-rename" },
46038-
"author_association": { "type": "string" },
46054+
"author_association": {
46055+
"$ref": "#/components/schemas/author_association"
46056+
},
4603946057
"lock_reason": { "type": "string", "nullable": true }
4604046058
},
4604146059
"required": [
@@ -46083,8 +46101,7 @@
4608346101
"example": "\"2020-07-09T00:17:36Z\""
4608446102
},
4608546103
"author_association": {
46086-
"type": "string",
46087-
"example": "\"COLLABORATOR\""
46104+
"$ref": "#/components/schemas/author_association"
4608846105
},
4608946106
"body": { "type": "string", "example": "\":+1:\"" },
4609046107
"lock_reason": { "type": "string", "example": "\"off-topic\"" },
@@ -47040,7 +47057,9 @@
4704047057
"self"
4704147058
]
4704247059
},
47043-
"author_association": { "type": "string", "example": "OWNER" },
47060+
"author_association": {
47061+
"$ref": "#/components/schemas/author_association"
47062+
},
4704447063
"draft": {
4704547064
"description": "Indicates whether or not the pull request is a draft.",
4704647065
"example": false,
@@ -47204,9 +47223,7 @@
4720447223
"example": "https://api.github.com/repos/octocat/Hello-World/pulls/1"
4720547224
},
4720647225
"author_association": {
47207-
"description": "How the author of the comment is associated with the pull request.",
47208-
"type": "string",
47209-
"example": "OWNER"
47226+
"$ref": "#/components/schemas/author_association"
4721047227
},
4721147228
"_links": {
4721247229
"type": "object",
@@ -47395,7 +47412,9 @@
4739547412
},
4739647413
"body_html": { "type": "string" },
4739747414
"body_text": { "type": "string" },
47398-
"author_association": { "type": "string" }
47415+
"author_association": {
47416+
"$ref": "#/components/schemas/author_association"
47417+
}
4739947418
},
4740047419
"required": [
4740147420
"id",
@@ -47471,7 +47490,9 @@
4747147490
"format": "uri",
4747247491
"example": "https://api.github.com/repos/octocat/Hello-World/pulls/1"
4747347492
},
47474-
"author_association": { "type": "string" },
47493+
"author_association": {
47494+
"$ref": "#/components/schemas/author_association"
47495+
},
4747547496
"_links": {
4747647497
"type": "object",
4747747498
"properties": {
@@ -48513,7 +48534,9 @@
4851348534
},
4851448535
"body": { "type": "string" },
4851548536
"score": { "type": "integer" },
48516-
"author_association": { "type": "string" },
48537+
"author_association": {
48538+
"$ref": "#/components/schemas/author_association"
48539+
},
4851748540
"draft": { "type": "boolean" },
4851848541
"repository": { "$ref": "#/components/schemas/repository" },
4851948542
"body_html": { "type": "string" },
@@ -50406,7 +50429,7 @@
5040650429
},
5040750430
"created_at": "2011-04-18T23:23:56Z",
5040850431
"updated_at": "2011-04-18T23:23:56Z",
50409-
"author_association": "collaborator"
50432+
"author_association": "COLLABORATOR"
5041050433
}
5041150434
]
5041250435
},
@@ -50438,7 +50461,7 @@
5043850461
},
5043950462
"created_at": "2011-04-18T23:23:56Z",
5044050463
"updated_at": "2011-04-18T23:23:56Z",
50441-
"author_association": "collaborator"
50464+
"author_association": "COLLABORATOR"
5044250465
}
5044350466
},
5044450467
"gist-commit-items": {
@@ -50945,7 +50968,7 @@
5094550968
"open_issues": 1,
5094650969
"watchers": 1
5094750970
},
50948-
"author_association": "collaborator"
50971+
"author_association": "COLLABORATOR"
5094950972
}
5095050973
]
5095150974
},
@@ -57512,7 +57535,7 @@
5751257535
},
5751357536
"created_at": "2011-04-14T16:00:49Z",
5751457537
"updated_at": "2011-04-14T16:00:49Z",
57515-
"author_association": "collaborator"
57538+
"author_association": "COLLABORATOR"
5751657539
}
5751757540
]
5751857541
},
@@ -57527,7 +57550,7 @@
5752757550
"position": 4,
5752857551
"line": 14,
5752957552
"commit_id": "6dcb09b5b57875f334f61aebed695e2e4193db5e",
57530-
"author_association": "collaborator",
57553+
"author_association": "COLLABORATOR",
5753157554
"user": {
5753257555
"login": "octocat",
5753357556
"id": 1,
@@ -57563,7 +57586,7 @@
5756357586
"position": 4,
5756457587
"line": 14,
5756557588
"commit_id": "6dcb09b5b57875f334f61aebed695e2e4193db5e",
57566-
"author_association": "collaborator",
57589+
"author_association": "COLLABORATOR",
5756757590
"user": {
5756857591
"login": "octocat",
5756957592
"id": 1,
@@ -60319,7 +60342,7 @@
6031960342
"closed_at": null,
6032060343
"created_at": "2011-04-22T13:33:48Z",
6032160344
"updated_at": "2011-04-22T13:33:48Z",
60322-
"author_association": "collaborator"
60345+
"author_association": "COLLABORATOR"
6032360346
}
6032460347
]
6032560348
},
@@ -60479,7 +60502,7 @@
6047960502
"type": "User",
6048060503
"site_admin": false
6048160504
},
60482-
"author_association": "collaborator"
60505+
"author_association": "COLLABORATOR"
6048360506
}
6048460507
},
6048560508
"issue-comment-items": {
@@ -60513,7 +60536,7 @@
6051360536
"created_at": "2011-04-14T16:00:49Z",
6051460537
"updated_at": "2011-04-14T16:00:49Z",
6051560538
"issue_url": "https://api.github.com/repos/octocat/Hello-World/issues/1347",
60516-
"author_association": "collaborator"
60539+
"author_association": "COLLABORATOR"
6051760540
}
6051860541
]
6051960542
},
@@ -60547,7 +60570,7 @@
6054760570
"created_at": "2011-04-14T16:00:49Z",
6054860571
"updated_at": "2011-04-14T16:00:49Z",
6054960572
"issue_url": "https://api.github.com/repos/octocat/Hello-World/issues/1347",
60550-
"author_association": "collaborator"
60573+
"author_association": "COLLABORATOR"
6055160574
}
6055260575
},
6055360576
"issue-event-items": {
@@ -60715,7 +60738,7 @@
6071560738
"closed_at": null,
6071660739
"created_at": "2011-04-22T13:33:48Z",
6071760740
"updated_at": "2011-04-22T13:33:48Z",
60718-
"author_association": "collaborator"
60741+
"author_association": "COLLABORATOR"
6071960742
}
6072060743
}
6072160744
]
@@ -60884,7 +60907,7 @@
6088460907
"closed_at": null,
6088560908
"created_at": "2011-04-22T13:33:48Z",
6088660909
"updated_at": "2011-04-22T13:33:48Z",
60887-
"author_association": "collaborator"
60910+
"author_association": "COLLABORATOR"
6088860911
}
6088960912
}
6089060913
},
@@ -61064,7 +61087,7 @@
6106461087
"closed_at": null,
6106561088
"created_at": "2011-04-22T13:33:48Z",
6106661089
"updated_at": "2011-04-22T13:33:48Z",
61067-
"author_association": "collaborator"
61090+
"author_association": "COLLABORATOR"
6106861091
}
6106961092
},
6107061093
"issue-event-for-issue-items": {
@@ -62798,7 +62821,7 @@
6279862821
},
6279962822
"submitted_at": "2019-11-17T17:43:43Z",
6280062823
"commit_id": "ecdd80bb57125d7ba9641ffaa4d7d2c19d3f3091",
62801-
"author_association": "collaborator"
62824+
"author_association": "COLLABORATOR"
6280262825
}
6280362826
]
6280462827
},
@@ -62840,7 +62863,7 @@
6284062863
},
6284162864
"submitted_at": "2019-11-17T17:43:43Z",
6284262865
"commit_id": "ecdd80bb57125d7ba9641ffaa4d7d2c19d3f3091",
62843-
"author_association": "collaborator"
62866+
"author_association": "COLLABORATOR"
6284462867
}
6284562868
},
6284662869
"pull-request-review-4": {
@@ -62881,7 +62904,7 @@
6288162904
},
6288262905
"submitted_at": "2019-11-17T17:43:43Z",
6288362906
"commit_id": "ecdd80bb57125d7ba9641ffaa4d7d2c19d3f3091",
62884-
"author_association": "collaborator"
62907+
"author_association": "COLLABORATOR"
6288562908
}
6288662909
},
6288762910
"pull-request-review-5": {
@@ -62922,7 +62945,7 @@
6292262945
},
6292362946
"submitted_at": "2019-11-17T17:43:43Z",
6292462947
"commit_id": "ecdd80bb57125d7ba9641ffaa4d7d2c19d3f3091",
62925-
"author_association": "collaborator"
62948+
"author_association": "COLLABORATOR"
6292662949
}
6292762950
},
6292862951
"review-comment-items": {
@@ -63017,7 +63040,7 @@
6301763040
},
6301863041
"submitted_at": "2019-11-17T17:43:43Z",
6301963042
"commit_id": "ecdd80bb57125d7ba9641ffaa4d7d2c19d3f3091",
63020-
"author_association": "collaborator"
63043+
"author_association": "COLLABORATOR"
6302163044
}
6302263045
},
6302363046
"content-file": {
@@ -64655,7 +64678,7 @@
6465564678
"body": "...",
6465664679
"score": 1,
6465764680
"locked": true,
64658-
"author_association": "collaborator"
64681+
"author_association": "COLLABORATOR"
6465964682
}
6466064683
]
6466164684
}

0 commit comments

Comments
 (0)