Skip to content

Commit 3d94b69

Browse files
authored
Merge pull request #1496 from github/openapi-update-3afaee9db72299b0caf5f7bbbb6a1e26dc3e52bf956d39c015c90b0573331675
Update OpenAPI 3.0 Descriptions
2 parents a24152b + 13b3190 commit 3d94b69

28 files changed

+882
-126
lines changed

descriptions/api.github.com/api.github.com.json

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29796,6 +29796,9 @@
2979629796
},
2979729797
"500": {
2979829798
"$ref": "#/components/responses/internal_error"
29799+
},
29800+
"503": {
29801+
"$ref": "#/components/responses/service_unavailable"
2979929802
}
2980029803
},
2980129804
"x-github": {
@@ -30240,11 +30243,14 @@
3024030243
}
3024130244
}
3024230245
},
30246+
"404": {
30247+
"$ref": "#/components/responses/not_found"
30248+
},
3024330249
"500": {
3024430250
"$ref": "#/components/responses/internal_error"
3024530251
},
30246-
"404": {
30247-
"$ref": "#/components/responses/not_found"
30252+
"503": {
30253+
"$ref": "#/components/responses/service_unavailable"
3024830254
}
3024930255
},
3025030256
"x-github": {
@@ -40944,11 +40950,14 @@
4094440950
"304": {
4094540951
"$ref": "#/components/responses/not_modified"
4094640952
},
40953+
"404": {
40954+
"$ref": "#/components/responses/not_found"
40955+
},
4094740956
"500": {
4094840957
"$ref": "#/components/responses/internal_error"
4094940958
},
40950-
"404": {
40951-
"$ref": "#/components/responses/not_found"
40959+
"503": {
40960+
"$ref": "#/components/responses/service_unavailable"
4095240961
}
4095340962
},
4095440963
"x-github": {
@@ -41619,6 +41628,9 @@
4161941628
},
4162041629
"500": {
4162141630
"$ref": "#/components/responses/internal_error"
41631+
},
41632+
"503": {
41633+
"$ref": "#/components/responses/service_unavailable"
4162241634
}
4162341635
},
4162441636
"x-github": {

descriptions/api.github.com/api.github.com.yaml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21511,6 +21511,8 @@ paths:
2151121511
"$ref": "#/components/responses/not_found"
2151221512
'500':
2151321513
"$ref": "#/components/responses/internal_error"
21514+
'503':
21515+
"$ref": "#/components/responses/service_unavailable"
2151421516
x-github:
2151521517
githubCloudOnly: false
2151621518
enabledForGitHubApps: true
@@ -21853,10 +21855,12 @@ paths:
2185321855
examples:
2185421856
default:
2185521857
"$ref": "#/components/examples/commit-comparison"
21856-
'500':
21857-
"$ref": "#/components/responses/internal_error"
2185821858
'404':
2185921859
"$ref": "#/components/responses/not_found"
21860+
'500':
21861+
"$ref": "#/components/responses/internal_error"
21862+
'503':
21863+
"$ref": "#/components/responses/service_unavailable"
2186021864
x-github:
2186121865
githubCloudOnly: false
2186221866
enabledForGitHubApps: true
@@ -29430,10 +29434,12 @@ paths:
2943029434
"$ref": "#/components/examples/pull-request"
2943129435
'304':
2943229436
"$ref": "#/components/responses/not_modified"
29433-
'500':
29434-
"$ref": "#/components/responses/internal_error"
2943529437
'404':
2943629438
"$ref": "#/components/responses/not_found"
29439+
'500':
29440+
"$ref": "#/components/responses/internal_error"
29441+
'503':
29442+
"$ref": "#/components/responses/service_unavailable"
2943729443
x-github:
2943829444
githubCloudOnly: false
2943929445
enabledForGitHubApps: true
@@ -29917,6 +29923,8 @@ paths:
2991729923
"$ref": "#/components/responses/validation_failed"
2991829924
'500':
2991929925
"$ref": "#/components/responses/internal_error"
29926+
'503':
29927+
"$ref": "#/components/responses/service_unavailable"
2992029928
x-github:
2992129929
githubCloudOnly: false
2992229930
enabledForGitHubApps: true

descriptions/api.github.com/dereferenced/api.github.com.deref.json

Lines changed: 92 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -229049,6 +229049,27 @@
229049229049
}
229050229050
}
229051229051
}
229052+
},
229053+
"503": {
229054+
"description": "Service unavailable",
229055+
"content": {
229056+
"application/json": {
229057+
"schema": {
229058+
"type": "object",
229059+
"properties": {
229060+
"code": {
229061+
"type": "string"
229062+
},
229063+
"message": {
229064+
"type": "string"
229065+
},
229066+
"documentation_url": {
229067+
"type": "string"
229068+
}
229069+
}
229070+
}
229071+
}
229072+
}
229052229073
}
229053229074
},
229054229075
"x-github": {
@@ -237412,8 +237433,8 @@
237412237433
}
237413237434
}
237414237435
},
237415-
"500": {
237416-
"description": "Internal Error",
237436+
"404": {
237437+
"description": "Resource not found",
237417237438
"content": {
237418237439
"application/json": {
237419237440
"schema": {
@@ -237438,8 +237459,8 @@
237438237459
}
237439237460
}
237440237461
},
237441-
"404": {
237442-
"description": "Resource not found",
237462+
"500": {
237463+
"description": "Internal Error",
237443237464
"content": {
237444237465
"application/json": {
237445237466
"schema": {
@@ -237463,6 +237484,27 @@
237463237484
}
237464237485
}
237465237486
}
237487+
},
237488+
"503": {
237489+
"description": "Service unavailable",
237490+
"content": {
237491+
"application/json": {
237492+
"schema": {
237493+
"type": "object",
237494+
"properties": {
237495+
"code": {
237496+
"type": "string"
237497+
},
237498+
"message": {
237499+
"type": "string"
237500+
},
237501+
"documentation_url": {
237502+
"type": "string"
237503+
}
237504+
}
237505+
}
237506+
}
237507+
}
237466237508
}
237467237509
},
237468237510
"x-github": {
@@ -347172,8 +347214,8 @@
347172347214
"304": {
347173347215
"description": "Not modified"
347174347216
},
347175-
"500": {
347176-
"description": "Internal Error",
347217+
"404": {
347218+
"description": "Resource not found",
347177347219
"content": {
347178347220
"application/json": {
347179347221
"schema": {
@@ -347198,8 +347240,8 @@
347198347240
}
347199347241
}
347200347242
},
347201-
"404": {
347202-
"description": "Resource not found",
347243+
"500": {
347244+
"description": "Internal Error",
347203347245
"content": {
347204347246
"application/json": {
347205347247
"schema": {
@@ -347223,6 +347265,27 @@
347223347265
}
347224347266
}
347225347267
}
347268+
},
347269+
"503": {
347270+
"description": "Service unavailable",
347271+
"content": {
347272+
"application/json": {
347273+
"schema": {
347274+
"type": "object",
347275+
"properties": {
347276+
"code": {
347277+
"type": "string"
347278+
},
347279+
"message": {
347280+
"type": "string"
347281+
},
347282+
"documentation_url": {
347283+
"type": "string"
347284+
}
347285+
}
347286+
}
347287+
}
347288+
}
347226347289
}
347227347290
},
347228347291
"x-github": {
@@ -358536,6 +358599,27 @@
358536358599
}
358537358600
}
358538358601
}
358602+
},
358603+
"503": {
358604+
"description": "Service unavailable",
358605+
"content": {
358606+
"application/json": {
358607+
"schema": {
358608+
"type": "object",
358609+
"properties": {
358610+
"code": {
358611+
"type": "string"
358612+
},
358613+
"message": {
358614+
"type": "string"
358615+
},
358616+
"documentation_url": {
358617+
"type": "string"
358618+
}
358619+
}
358620+
}
358621+
}
358622+
}
358539358623
}
358540358624
},
358541358625
"x-github": {

descriptions/api.github.com/dereferenced/api.github.com.deref.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45330,6 +45330,7 @@ paths:
4533045330
'422': *10
4533145331
'404': *16
4533245332
'500': *158
45333+
'503': *63
4533345334
x-github:
4533445335
githubCloudOnly: false
4533545336
enabledForGitHubApps: true
@@ -46480,8 +46481,9 @@ paths:
4648046481
contents_url: https://api.github.com/repos/octocat/Hello-World/contents/file1.txt?ref=6dcb09b5b57875f334f61aebed695e2e4193db5e
4648146482
patch: "@@ -132,7 +132,7 @@ module Test @@ -1000,7 +1000,7 @@
4648246483
module Test"
46483-
'500': *158
4648446484
'404': *16
46485+
'500': *158
46486+
'503': *63
4648546487
x-github:
4648646488
githubCloudOnly: false
4648746489
enabledForGitHubApps: true
@@ -61668,8 +61670,9 @@ paths:
6166861670
examples:
6166961671
default: *410
6167061672
'304': *27
61671-
'500': *158
6167261673
'404': *16
61674+
'500': *158
61675+
'503': *63
6167361676
x-github:
6167461677
githubCloudOnly: false
6167561678
enabledForGitHubApps: true
@@ -62236,6 +62239,7 @@ paths:
6223662239
Link: *28
6223762240
'422': *10
6223862241
'500': *158
62242+
'503': *63
6223962243
x-github:
6224062244
githubCloudOnly: false
6224162245
enabledForGitHubApps: true

0 commit comments

Comments
 (0)