Skip to content

Commit

Permalink
fix: improved response types (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
octokitbot committed Jan 21, 2021
1 parent 228a34b commit 4649d1a
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 271 deletions.
57 changes: 51 additions & 6 deletions cache/openapi-schema.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"openapi": "3.0.3",
"info": {
"version": "2.4.1",
"version": "2.4.2",
"title": "GitHub's official OpenAPI spec + Octokit extension",
"description": "OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs",
"license": { "name": "MIT", "url": "https://spdx.org/licenses/MIT" },
Expand Down Expand Up @@ -5412,8 +5412,11 @@
},
"members_can_create_pages": {
"type": "boolean",
"description": "Toggles whether organization members can create GitHub Pages sites. Can be one of: \n\\* `true` - all organization members can create GitHub Pages sites. \n\\* `false` - no organization members can create GitHub Pages sites. Existing published sites will not be impacted. \nDefault: `true`. "
"description": "Toggles whether organization members can create GitHub Pages sites. Can be one of: \n\\* `true` - all organization members can create GitHub Pages sites. \n\\* `false` - no organization members can create GitHub Pages sites. Existing published sites will not be impacted. \nDefault: `true`. ",
"default": true
},
"members_can_create_public_pages": { "type": "boolean" },
"members_can_create_private_pages": { "type": "boolean" },
"blog": {
"type": "string",
"example": "\"http://github.blog\""
Expand Down Expand Up @@ -16511,15 +16514,18 @@
},
"summary": {
"type": "string",
"maxLength": 65535,
"description": "The summary of the check run. This parameter supports Markdown."
},
"text": {
"type": "string",
"maxLength": 65535,
"description": "The details of the check run. This parameter supports Markdown."
},
"annotations": {
"type": "array",
"description": "Adds information from your analysis to specific lines of code. Annotations are visible on GitHub in the **Checks** and **Files changed** tab of the pull request. The Checks API limits the number of annotations to a maximum of 50 per API request. To create more than 50 annotations, you have to make multiple requests to the [Update a check run](https://docs.github.com/rest/reference/checks#update-a-check-run) endpoint. Each time you update the check run, annotations are appended to the list of annotations that already exist for the check run. For details about how you can view annotations on GitHub, see \"[About status checks](https://help.github.com/articles/about-status-checks#checks)\". See the [`annotations` object](https://docs.github.com/rest/reference/checks#annotations-object) description for details about how to use this parameter.",
"maxItems": 50,
"items": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -16598,27 +16604,44 @@
"actions": {
"type": "array",
"description": "Displays a button on GitHub that can be clicked to alert your app to do additional tasks. For example, a code linting app can display a button that automatically fixes detected errors. The button created in this object is displayed after the check run completes. When a user clicks the button, GitHub sends the [`check_run.requested_action` webhook](https://docs.github.com/webhooks/event-payloads/#check_run) to your app. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. See the [`actions` object](https://docs.github.com/rest/reference/checks#actions-object) description. To learn more about check runs and requested actions, see \"[Check runs and requested actions](https://docs.github.com/rest/reference/checks#check-runs-and-requested-actions).\" To learn more about check runs and requested actions, see \"[Check runs and requested actions](https://docs.github.com/rest/reference/checks#check-runs-and-requested-actions).\"",
"maxItems": 3,
"items": {
"type": "object",
"properties": {
"label": {
"type": "string",
"maxLength": 20,
"description": "The text to be displayed on a button in the web UI. The maximum size is 20 characters."
},
"description": {
"type": "string",
"maxLength": 40,
"description": "A short explanation of what this action would do. The maximum size is 40 characters."
},
"identifier": {
"type": "string",
"maxLength": 20,
"description": "A reference for the action on the integrator's system. The maximum size is 20 characters."
}
},
"required": ["label", "description", "identifier"]
}
}
},
"required": ["name", "head_sha"]
"required": ["name", "head_sha"],
"anyOf": [
{
"properties": { "status": { "enum": ["completed"] } },
"required": ["conclusion"],
"additionalProperties": true
},
{
"properties": {
"status": { "enum": ["queued", "in_progress"] }
},
"additionalProperties": true
}
]
},
"examples": {
"example-of-in-progress-conclusion": {
Expand Down Expand Up @@ -16822,15 +16845,18 @@
},
"summary": {
"type": "string",
"description": "Can contain Markdown."
"description": "Can contain Markdown.",
"maxLength": 65535
},
"text": {
"type": "string",
"description": "Can contain Markdown."
"description": "Can contain Markdown.",
"maxLength": 65535
},
"annotations": {
"type": "array",
"description": "Adds information from your analysis to specific lines of code. Annotations are visible in GitHub's pull request UI. Annotations are visible in GitHub's pull request UI. The Checks API limits the number of annotations to a maximum of 50 per API request. To create more than 50 annotations, you have to make multiple requests to the [Update a check run](https://docs.github.com/rest/reference/checks#update-a-check-run) endpoint. Each time you update the check run, annotations are appended to the list of annotations that already exist for the check run. For details about annotations in the UI, see \"[About status checks](https://help.github.com/articles/about-status-checks#checks)\". See the [`annotations` object](https://docs.github.com/rest/reference/checks#annotations-object-1) description for details.",
"maxItems": 50,
"items": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -16909,26 +16935,43 @@
"actions": {
"type": "array",
"description": "Possible further actions the integrator can perform, which a user may trigger. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. See the [`actions` object](https://docs.github.com/rest/reference/checks#actions-object) description. To learn more about check runs and requested actions, see \"[Check runs and requested actions](https://docs.github.com/rest/reference/checks#check-runs-and-requested-actions).\"",
"maxItems": 3,
"items": {
"type": "object",
"properties": {
"label": {
"type": "string",
"maxLength": 20,
"description": "The text to be displayed on a button in the web UI. The maximum size is 20 characters."
},
"description": {
"type": "string",
"maxLength": 40,
"description": "A short explanation of what this action would do. The maximum size is 40 characters."
},
"identifier": {
"type": "string",
"maxLength": 20,
"description": "A reference for the action on the integrator's system. The maximum size is 20 characters."
}
},
"required": ["label", "description", "identifier"]
}
}
}
},
"anyOf": [
{
"properties": { "status": { "enum": ["completed"] } },
"required": ["conclusion"],
"additionalProperties": true
},
{
"properties": {
"status": { "enum": ["queued", "in_progress"] }
},
"additionalProperties": true
}
]
},
"example": {
"name": "mighty_readme",
Expand Down Expand Up @@ -26528,6 +26571,7 @@
"application/json": {
"schema": {
"type": "object",
"nullable": true,
"properties": {
"commit_title": {
"type": "string",
Expand Down Expand Up @@ -27285,6 +27329,7 @@
"application/json": {
"schema": {
"type": "object",
"nullable": true,
"properties": {
"expected_head_sha": {
"type": "string",
Expand Down
Loading

0 comments on commit 4649d1a

Please sign in to comment.