Skip to content

Commit

Permalink
Update OpenAPI Descriptions (github#18553)
Browse files Browse the repository at this point in the history
Co-authored-by: Rachael Sewell <[email protected]>
  • Loading branch information
github-openapi-bot and rachmari authored Apr 2, 2021
1 parent 8042691 commit 10fef4d
Show file tree
Hide file tree
Showing 17 changed files with 2,439 additions and 827 deletions.
277 changes: 185 additions & 92 deletions lib/rest/static/decorated/api.github.com.json

Large diffs are not rendered by default.

267 changes: 177 additions & 90 deletions lib/rest/static/decorated/ghes-2.18.json

Large diffs are not rendered by default.

267 changes: 177 additions & 90 deletions lib/rest/static/decorated/ghes-2.19.json

Large diffs are not rendered by default.

267 changes: 177 additions & 90 deletions lib/rest/static/decorated/ghes-2.20.json

Large diffs are not rendered by default.

267 changes: 177 additions & 90 deletions lib/rest/static/decorated/ghes-2.21.json

Large diffs are not rendered by default.

267 changes: 177 additions & 90 deletions lib/rest/static/decorated/ghes-2.22.json

Large diffs are not rendered by default.

267 changes: 177 additions & 90 deletions lib/rest/static/decorated/ghes-3.0.json

Large diffs are not rendered by default.

251 changes: 169 additions & 82 deletions lib/rest/static/decorated/github.ae.json

Large diffs are not rendered by default.

146 changes: 131 additions & 15 deletions lib/rest/static/dereferenced/api.github.com.deref.json
Original file line number Diff line number Diff line change
Expand Up @@ -684,6 +684,16 @@
}
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": false
}
}
}
},
"responses": {
"201": {
"description": "Response",
Expand Down Expand Up @@ -67933,7 +67943,10 @@
"exclude": {
"type": "array",
"items": {
"type": "string"
"type": "string",
"enum": [
"repositories"
]
}
}
},
Expand Down Expand Up @@ -186769,7 +186782,11 @@
"type": "string",
"description": "Indicates when this commit was authored (or committed). This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."
}
}
},
"required": [
"name",
"email"
]
},
"committer": {
"type": "object",
Expand Down Expand Up @@ -188349,7 +188366,11 @@
"type": "string",
"description": "When this object was tagged. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."
}
}
},
"required": [
"name",
"email"
]
}
},
"required": [
Expand Down Expand Up @@ -223899,18 +223920,65 @@
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"labels": {
"oneOf": [
{
"type": "object",
"properties": {
"labels": {
"type": "array",
"minItems": 1,
"description": "The names of the labels to add to the issue. You can pass an empty array to remove all labels. **Note:** Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key.",
"items": {
"type": "string"
}
}
}
},
{
"type": "array",
"description": "The name of the label to add to the issue. Must contain at least one label. **Note:** Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key.",
"minItems": 1,
"items": {
"type": "string"
}
},
{
"type": "object",
"properties": {
"labels": {
"type": "array",
"minItems": 1,
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
}
},
"required": [
"name"
]
}
}
}
},
{
"type": "array",
"minItems": 1,
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
}
},
"required": [
"name"
]
}
},
{
"type": "string"
}
},
"required": [
"labels"
]
},
"example": {
Expand Down Expand Up @@ -224148,16 +224216,62 @@
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"labels": {
"anyOf": [
{
"type": "object",
"properties": {
"labels": {
"type": "array",
"description": "The names of the labels to add to the issue. You can pass an empty array to remove all labels. **Note:** Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key.",
"items": {
"type": "string"
}
}
}
},
{
"type": "array",
"description": "The names of the labels to add to the issue. You can pass an empty array to remove all labels. **Note:** Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key.",
"items": {
"type": "string"
}
},
{
"type": "object",
"properties": {
"labels": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
}
},
"required": [
"name"
]
}
}
}
},
{
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
}
},
"required": [
"name"
]
}
},
{
"type": "string"
}
}
]
},
"example": {
"labels": [
Expand Down Expand Up @@ -228857,6 +228971,7 @@
},
"due_on": {
"type": "string",
"format": "date-time",
"description": "The milestone due date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."
}
},
Expand Down Expand Up @@ -229653,6 +229768,7 @@
},
"due_on": {
"type": "string",
"format": "date-time",
"description": "The milestone due date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."
}
}
Expand Down
Loading

0 comments on commit 10fef4d

Please sign in to comment.