Skip to content

File tree

111 files changed

+27477
-9408
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

111 files changed

+27477
-9408
lines changed

Diff for: clients/client-accessanalyzer/protocols/Aws_restJson1_1.ts

+10
Original file line numberDiff line numberDiff line change
@@ -3435,6 +3435,16 @@ const collectBodyString = (
34353435
);
34363436
};
34373437

3438+
function isSerializableHeaderValue(value: any): boolean {
3439+
return (
3440+
value !== undefined &&
3441+
value !== "" &&
3442+
(!Object.getOwnPropertyNames(value).includes("length") ||
3443+
value.length != 0) &&
3444+
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0)
3445+
);
3446+
}
3447+
34383448
const parseBody = (streamBody: any, context: __SerdeContext): any => {
34393449
return collectBodyString(streamBody, context).then(encoded => {
34403450
if (encoded.length) {

Diff for: clients/client-amplify/protocols/Aws_restJson1_1.ts

+10
Original file line numberDiff line numberDiff line change
@@ -6825,6 +6825,16 @@ const collectBodyString = (
68256825
);
68266826
};
68276827

6828+
function isSerializableHeaderValue(value: any): boolean {
6829+
return (
6830+
value !== undefined &&
6831+
value !== "" &&
6832+
(!Object.getOwnPropertyNames(value).includes("length") ||
6833+
value.length != 0) &&
6834+
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0)
6835+
);
6836+
}
6837+
68286838
const parseBody = (streamBody: any, context: __SerdeContext): any => {
68296839
return collectBodyString(streamBody, context).then(encoded => {
68306840
if (encoded.length) {

Diff for: clients/client-api-gateway/protocols/Aws_restJson1_1.ts

+12-2
Original file line numberDiff line numberDiff line change
@@ -3861,8 +3861,8 @@ export async function serializeAws_restJson1_1GetExportCommand(
38613861
): Promise<__HttpRequest> {
38623862
const headers: any = {};
38633863
headers["Content-Type"] = "application/json";
3864-
if (input.accepts !== undefined) {
3865-
headers["Accept"] = input.accepts;
3864+
if (isSerializableHeaderValue(input.accepts)) {
3865+
headers["Accept"] = input.accepts!;
38663866
}
38673867
let resolvedPath =
38683868
"/restapis/{restApiId}/stages/{stageName}/exports/{exportType}";
@@ -24448,6 +24448,16 @@ const collectBodyString = (
2444824448
);
2444924449
};
2445024450

24451+
function isSerializableHeaderValue(value: any): boolean {
24452+
return (
24453+
value !== undefined &&
24454+
value !== "" &&
24455+
(!Object.getOwnPropertyNames(value).includes("length") ||
24456+
value.length != 0) &&
24457+
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0)
24458+
);
24459+
}
24460+
2445124461
const parseBody = (streamBody: any, context: __SerdeContext): any => {
2445224462
return collectBodyString(streamBody, context).then(encoded => {
2445324463
if (encoded.length) {

Diff for: clients/client-apigatewaymanagementapi/protocols/Aws_restJson1_1.ts

+10
Original file line numberDiff line numberDiff line change
@@ -495,6 +495,16 @@ const collectBodyString = (
495495
);
496496
};
497497

498+
function isSerializableHeaderValue(value: any): boolean {
499+
return (
500+
value !== undefined &&
501+
value !== "" &&
502+
(!Object.getOwnPropertyNames(value).includes("length") ||
503+
value.length != 0) &&
504+
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0)
505+
);
506+
}
507+
498508
const parseBody = (streamBody: any, context: __SerdeContext): any => {
499509
return collectBodyString(streamBody, context).then(encoded => {
500510
if (encoded.length) {

Diff for: clients/client-apigatewayv2/protocols/Aws_restJson1_1.ts

+10
Original file line numberDiff line numberDiff line change
@@ -11785,6 +11785,16 @@ const collectBodyString = (
1178511785
);
1178611786
};
1178711787

11788+
function isSerializableHeaderValue(value: any): boolean {
11789+
return (
11790+
value !== undefined &&
11791+
value !== "" &&
11792+
(!Object.getOwnPropertyNames(value).includes("length") ||
11793+
value.length != 0) &&
11794+
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0)
11795+
);
11796+
}
11797+
1178811798
const parseBody = (streamBody: any, context: __SerdeContext): any => {
1178911799
return collectBodyString(streamBody, context).then(encoded => {
1179011800
if (encoded.length) {

Diff for: clients/client-app-mesh/protocols/Aws_restJson1_1.ts

+10
Original file line numberDiff line numberDiff line change
@@ -7494,6 +7494,16 @@ const collectBodyString = (
74947494
);
74957495
};
74967496

7497+
function isSerializableHeaderValue(value: any): boolean {
7498+
return (
7499+
value !== undefined &&
7500+
value !== "" &&
7501+
(!Object.getOwnPropertyNames(value).includes("length") ||
7502+
value.length != 0) &&
7503+
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0)
7504+
);
7505+
}
7506+
74977507
const parseBody = (streamBody: any, context: __SerdeContext): any => {
74987508
return collectBodyString(streamBody, context).then(encoded => {
74997509
if (encoded.length) {

Diff for: clients/client-appconfig/protocols/Aws_restJson1_1.ts

+10
Original file line numberDiff line numberDiff line change
@@ -4914,6 +4914,16 @@ const collectBodyString = (
49144914
);
49154915
};
49164916

4917+
function isSerializableHeaderValue(value: any): boolean {
4918+
return (
4919+
value !== undefined &&
4920+
value !== "" &&
4921+
(!Object.getOwnPropertyNames(value).includes("length") ||
4922+
value.length != 0) &&
4923+
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0)
4924+
);
4925+
}
4926+
49174927
const parseBody = (streamBody: any, context: __SerdeContext): any => {
49184928
return collectBodyString(streamBody, context).then(encoded => {
49194929
if (encoded.length) {

Diff for: clients/client-appsync/protocols/Aws_restJson1_1.ts

+10
Original file line numberDiff line numberDiff line change
@@ -7819,6 +7819,16 @@ const collectBodyString = (
78197819
);
78207820
};
78217821

7822+
function isSerializableHeaderValue(value: any): boolean {
7823+
return (
7824+
value !== undefined &&
7825+
value !== "" &&
7826+
(!Object.getOwnPropertyNames(value).includes("length") ||
7827+
value.length != 0) &&
7828+
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0)
7829+
);
7830+
}
7831+
78227832
const parseBody = (streamBody: any, context: __SerdeContext): any => {
78237833
return collectBodyString(streamBody, context).then(encoded => {
78247834
if (encoded.length) {

0 commit comments

Comments
 (0)