Skip to content

Commit

Permalink
build: file parameter is no data for .repos.uploadReleaseAsset()
Browse files Browse the repository at this point in the history
  • Loading branch information
gr2m committed Jan 31, 2020
1 parent 6285b6c commit 463e4ff
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
8 changes: 7 additions & 1 deletion scripts/update-endpoints/typescript.js
Expand Up @@ -501,11 +501,17 @@ Most libraries will set the required \`Content-Length\` header automatically. Us
GitHub expects the asset data in its raw binary form, rather than JSON. You will send the raw binary content of the asset as the request body. Everything else about the endpoint is the same as the rest of the API. For example, you'll still need to pass your authentication to be able to upload an asset.`,
params: {
file: {
data: {
mapTo: "data",
required: true,
type: "string | object"
},
file: {
mapTo: "data",
deprecated: true,
type: "string | object",
alias: "data"
},
headers: {
required: true,
type: "object"
Expand Down
8 changes: 7 additions & 1 deletion scripts/update-endpoints/workarounds.js
Expand Up @@ -323,12 +323,18 @@ module.exports = [
headers: [],
parameters: [
{
name: "file",
name: "data",
in: "BODY",
mapToData: true,
required: true,
type: "string | object"
},
{
name: "file",
in: "BODY",
alias: "data",
deprecated: true
},
{
name: "headers",
in: "BODY",
Expand Down

0 comments on commit 463e4ff

Please sign in to comment.