diff --git a/scripts/update-endpoints/typescript.js b/scripts/update-endpoints/typescript.js index 9e04b171..56c83ded 100644 --- a/scripts/update-endpoints/typescript.js +++ b/scripts/update-endpoints/typescript.js @@ -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" diff --git a/scripts/update-endpoints/workarounds.js b/scripts/update-endpoints/workarounds.js index e3011dc0..1af66f64 100644 --- a/scripts/update-endpoints/workarounds.js +++ b/scripts/update-endpoints/workarounds.js @@ -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",