Skip to content

Commit

Permalink
fix: key_id parameter is a string, not integer (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jan 29, 2020
1 parent 744e079 commit 1c28ed1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 17 deletions.
22 changes: 6 additions & 16 deletions scripts/update-endpoints/generated/endpoints.json
Expand Up @@ -13925,7 +13925,7 @@
"name": "key_id",
"description": "ID of the key you used to encrypt the secret.",
"in": "BODY",
"type": "integer",
"type": "string",
"required": false,
"enum": null,
"allowNull": false,
Expand All @@ -13935,17 +13935,7 @@
"deprecated": null
}
],
"responses": [
{
"code": 201,
"description": "response",
"examples": [
{
"data": "{\"encrypted_value\":\"QIvLrNh6tmhUxABczx2vnsncsIj2KiwitqIVpXN9bU3DsHJ1srExk/DrgRaXCAwJnsdsmjo1KwQ=\",\"key_id\":\"1234\"}"
}
]
}
],
"responses": [],
"renamed": null
},
{
Expand Down Expand Up @@ -33287,7 +33277,7 @@
"url": "/repos/{owner}/{repo}/pulls/{pull_number}/files",
"isDeprecated": false,
"isLegacy": false,
"description": "**Note:** The response includes a maximum of 300 files.",
"description": "**Note:** Responses include a maximum of 3000 files. The paginated response returns 30 files per page by default.",
"documentationUrl": "https://developer.github.com/v3/pulls/#list-pull-requests-files",
"previews": [],
"headers": [],
Expand Down Expand Up @@ -44240,7 +44230,7 @@
"description": "response",
"examples": [
{
"data": "[{\"id\":1,\"key\":\"ssh-rsa AAA...\",\"url\":\"https://api.github.com/user/keys/1\",\"title\":\"octocat@octomac\",\"verified\":true,\"created_at\":\"2014-12-10T15:53:42Z\",\"read_only\":true}]"
"data": "[{\"key_id\":\"1234\",\"key\":\"2Sg8iYjAxxmI2LvUXpJjkYrMxURPc8r+dB7TJyvv1234\"}]"
}
]
}
Expand Down Expand Up @@ -44293,7 +44283,7 @@
"description": "response",
"examples": [
{
"data": "{\"id\":1,\"key\":\"ssh-rsa AAA...\",\"url\":\"https://api.github.com/user/keys/1\",\"title\":\"octocat@octomac\",\"verified\":true,\"created_at\":\"2014-12-10T15:53:42Z\",\"read_only\":true}"
"data": "{\"key_id\":\"1234\",\"key\":\"2Sg8iYjAxxmI2LvUXpJjkYrMxURPc8r+dB7TJyvv1234\"}"
}
]
}
Expand Down Expand Up @@ -44333,7 +44323,7 @@
"description": "response",
"examples": [
{
"data": "{\"id\":1,\"key\":\"ssh-rsa AAA...\",\"url\":\"https://api.github.com/user/keys/1\",\"title\":\"octocat@octomac\",\"verified\":true,\"created_at\":\"2014-12-10T15:53:42Z\",\"read_only\":true}"
"data": "{\"key_id\":\"1234\",\"key\":\"2Sg8iYjAxxmI2LvUXpJjkYrMxURPc8r+dB7TJyvv1234\"}"
}
]
}
Expand Down
2 changes: 1 addition & 1 deletion src/generated/endpoints.ts
Expand Up @@ -13,7 +13,7 @@ export default {
method: "PUT",
params: {
encrypted_value: { type: "string" },
key_id: { type: "integer" },
key_id: { type: "string" },
name: { required: true, type: "string" },
owner: { required: true, type: "string" },
repo: { required: true, type: "string" }
Expand Down

0 comments on commit 1c28ed1

Please sign in to comment.