Skip to content

Commit 5f0dd14

Browse files
Updating OpenAPI descriptions (#16712)
1 parent 8349bdf commit 5f0dd14

File tree

4 files changed

+32
-0
lines changed

4 files changed

+32
-0
lines changed

lib/rest/static/decorated/api.github.com.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41282,6 +41282,11 @@
4128241282
"httpStatusMessage": "Accepted",
4128341283
"description": "Response"
4128441284
},
41285+
{
41286+
"httpStatusCode": "400",
41287+
"httpStatusMessage": "Bad Request",
41288+
"description": "Response if the sarif field is invalid"
41289+
},
4128541290
{
4128641291
"httpStatusCode": "403",
4128741292
"httpStatusMessage": "Forbidden",
@@ -41291,6 +41296,11 @@
4129141296
"httpStatusCode": "404",
4129241297
"httpStatusMessage": "Not Found",
4129341298
"description": "Response if commit sha or ref cannot be found"
41299+
},
41300+
{
41301+
"httpStatusCode": "413",
41302+
"httpStatusMessage": "Payload Too Large",
41303+
"description": "Response if the sarif field is too large"
4129441304
}
4129541305
],
4129641306
"descriptionHTML": "<p>Upload a SARIF file containing the results of a code scanning analysis to make the results available in a repository.\nFor private repos, you must use an access token with the <code>repo</code> scope. For public repos, you must use an access token with <code>public_repo</code> and <code>repo:security_events</code> scopes. GitHub Apps must have the <code>security_events</code> write permission to use this endpoint.</p>",

lib/rest/static/decorated/ghes-2.22.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39166,6 +39166,11 @@
3916639166
"httpStatusMessage": "Accepted",
3916739167
"description": "Response"
3916839168
},
39169+
{
39170+
"httpStatusCode": "400",
39171+
"httpStatusMessage": "Bad Request",
39172+
"description": "Response if the sarif field is invalid"
39173+
},
3916939174
{
3917039175
"httpStatusCode": "403",
3917139176
"httpStatusMessage": "Forbidden",
@@ -39175,6 +39180,11 @@
3917539180
"httpStatusCode": "404",
3917639181
"httpStatusMessage": "Not Found",
3917739182
"description": "Response if commit sha or ref cannot be found"
39183+
},
39184+
{
39185+
"httpStatusCode": "413",
39186+
"httpStatusMessage": "Payload Too Large",
39187+
"description": "Response if the sarif field is too large"
3917839188
}
3917939189
],
3918039190
"descriptionHTML": "<p>Upload a SARIF file containing the results of a code scanning analysis to make the results available in a repository.\nFor private repos, you must use an access token with the <code>repo</code> scope. For public repos, you must use an access token with <code>public_repo</code> and <code>repo:security_events</code> scopes. GitHub Apps must have the <code>security_events</code> write permission to use this endpoint.</p>",

lib/rest/static/dereferenced/api.github.com.deref.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125547,6 +125547,12 @@
125547125547
},
125548125548
"404": {
125549125549
"description": "Response if `commit_sha` or `ref` cannot be found"
125550+
},
125551+
"400": {
125552+
"description": "Response if the `sarif` field is invalid"
125553+
},
125554+
"413": {
125555+
"description": "Response if the `sarif` field is too large"
125550125556
}
125551125557
},
125552125558
"x-github": {

lib/rest/static/dereferenced/ghes-2.22.deref.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116192,6 +116192,12 @@
116192116192
},
116193116193
"404": {
116194116194
"description": "Response if `commit_sha` or `ref` cannot be found"
116195+
},
116196+
"400": {
116197+
"description": "Response if the `sarif` field is invalid"
116198+
},
116199+
"413": {
116200+
"description": "Response if the `sarif` field is too large"
116195116201
}
116196116202
},
116197116203
"x-github": {

0 commit comments

Comments
 (0)