Skip to content

Commit bab4248

Browse files
author
root
committed
Version 3.0.0-rc2-v2.1-1.4.0 release
1 parent 89cc305 commit bab4248

3 files changed

Lines changed: 8 additions & 13 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
See [DocuSign Support Center](https://support.docusign.com/en/releasenotes/) for Product Release Notes.
44

55

6+
## [v3.0.0-rc2] - Admin API v2.1-1.4.0 - 2024-09-19
7+
### Other Changes
8+
- Fixed issue - skipped removing empty arrays in request parameters when making HTTP calls.
9+
- Updated the SDK release version.
10+
611
## [v3.0.0-rc1] - Admin API v2.1-1.4.0 - 2024-08-27
712
### Breaking Changes
813
<details>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "docusign-admin",
3-
"version": "3.0.0-rc1",
3+
"version": "3.0.0-rc2",
44
"description": "The Docusign Admin API enables you to automate user management with your existing systems while ensuring governance and compliance.",
55
"license": "MIT",
66
"main": "src/index.js",

src/ApiClient.js

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,6 @@
4242
"User-Agent": `Swagger-Codegen/node/${process.version}`,
4343
};
4444

45-
var removeNulls = function (obj) {
46-
var isArray = obj instanceof Array;
47-
for (var k in obj) {
48-
if (typeof obj[k] === "object") removeNulls(obj[k]);
49-
if (isArray && obj.length === k) removeNulls(obj);
50-
if (obj[k] instanceof Array && obj[k].length === 0) delete obj[k];
51-
}
52-
return obj;
53-
};
54-
5545
var generateAndSignJWTAssertion = function (
5646
clientId,
5747
scopes,
@@ -665,7 +655,7 @@
665655
var formAttachmentKey = Object.keys(formParams).find(function (key) {
666656
return _this.isFileParam(_formParams[key]);
667657
});
668-
requestConfig.data = removeNulls(formParams[formAttachmentKey]);
658+
requestConfig.data = formParams[formAttachmentKey];
669659
} else {
670660
//automatic serialization for formData is supported in axios as of 0.27.0. ref: https://axios-http.com/docs/multipart
671661
requestConfig.headers = {
@@ -676,7 +666,7 @@
676666
requestConfig.data = _formParams;
677667
}
678668
} else if (body) {
679-
requestConfig.data = removeNulls(body);
669+
requestConfig.data = body;
680670
}
681671

682672
var accept = this.jsonPreferredMime(accepts);

0 commit comments

Comments
 (0)