Skip to content

Commit

Permalink
Show file tree
Hide file tree
Showing 111 changed files with 27,477 additions and 9,408 deletions.
10 changes: 10 additions & 0 deletions clients/client-accessanalyzer/protocols/Aws_restJson1_1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3435,6 +3435,16 @@ const collectBodyString = (
);
};

function isSerializableHeaderValue(value: any): boolean {
return (
value !== undefined &&
value !== "" &&
(!Object.getOwnPropertyNames(value).includes("length") ||
value.length != 0) &&
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0)
);
}

const parseBody = (streamBody: any, context: __SerdeContext): any => {
return collectBodyString(streamBody, context).then(encoded => {
if (encoded.length) {
Expand Down
10 changes: 10 additions & 0 deletions clients/client-amplify/protocols/Aws_restJson1_1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6825,6 +6825,16 @@ const collectBodyString = (
);
};

function isSerializableHeaderValue(value: any): boolean {
return (
value !== undefined &&
value !== "" &&
(!Object.getOwnPropertyNames(value).includes("length") ||
value.length != 0) &&
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0)
);
}

const parseBody = (streamBody: any, context: __SerdeContext): any => {
return collectBodyString(streamBody, context).then(encoded => {
if (encoded.length) {
Expand Down
14 changes: 12 additions & 2 deletions clients/client-api-gateway/protocols/Aws_restJson1_1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3861,8 +3861,8 @@ export async function serializeAws_restJson1_1GetExportCommand(
): Promise<__HttpRequest> {
const headers: any = {};
headers["Content-Type"] = "application/json";
if (input.accepts !== undefined) {
headers["Accept"] = input.accepts;
if (isSerializableHeaderValue(input.accepts)) {
headers["Accept"] = input.accepts!;
}
let resolvedPath =
"/restapis/{restApiId}/stages/{stageName}/exports/{exportType}";
Expand Down Expand Up @@ -24448,6 +24448,16 @@ const collectBodyString = (
);
};

function isSerializableHeaderValue(value: any): boolean {
return (
value !== undefined &&
value !== "" &&
(!Object.getOwnPropertyNames(value).includes("length") ||
value.length != 0) &&
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0)
);
}

const parseBody = (streamBody: any, context: __SerdeContext): any => {
return collectBodyString(streamBody, context).then(encoded => {
if (encoded.length) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,16 @@ const collectBodyString = (
);
};

function isSerializableHeaderValue(value: any): boolean {
return (
value !== undefined &&
value !== "" &&
(!Object.getOwnPropertyNames(value).includes("length") ||
value.length != 0) &&
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0)
);
}

const parseBody = (streamBody: any, context: __SerdeContext): any => {
return collectBodyString(streamBody, context).then(encoded => {
if (encoded.length) {
Expand Down
10 changes: 10 additions & 0 deletions clients/client-apigatewayv2/protocols/Aws_restJson1_1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11785,6 +11785,16 @@ const collectBodyString = (
);
};

function isSerializableHeaderValue(value: any): boolean {
return (
value !== undefined &&
value !== "" &&
(!Object.getOwnPropertyNames(value).includes("length") ||
value.length != 0) &&
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0)
);
}

const parseBody = (streamBody: any, context: __SerdeContext): any => {
return collectBodyString(streamBody, context).then(encoded => {
if (encoded.length) {
Expand Down
10 changes: 10 additions & 0 deletions clients/client-app-mesh/protocols/Aws_restJson1_1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7494,6 +7494,16 @@ const collectBodyString = (
);
};

function isSerializableHeaderValue(value: any): boolean {
return (
value !== undefined &&
value !== "" &&
(!Object.getOwnPropertyNames(value).includes("length") ||
value.length != 0) &&
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0)
);
}

const parseBody = (streamBody: any, context: __SerdeContext): any => {
return collectBodyString(streamBody, context).then(encoded => {
if (encoded.length) {
Expand Down
10 changes: 10 additions & 0 deletions clients/client-appconfig/protocols/Aws_restJson1_1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4914,6 +4914,16 @@ const collectBodyString = (
);
};

function isSerializableHeaderValue(value: any): boolean {
return (
value !== undefined &&
value !== "" &&
(!Object.getOwnPropertyNames(value).includes("length") ||
value.length != 0) &&
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0)
);
}

const parseBody = (streamBody: any, context: __SerdeContext): any => {
return collectBodyString(streamBody, context).then(encoded => {
if (encoded.length) {
Expand Down
10 changes: 10 additions & 0 deletions clients/client-appsync/protocols/Aws_restJson1_1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7819,6 +7819,16 @@ const collectBodyString = (
);
};

function isSerializableHeaderValue(value: any): boolean {
return (
value !== undefined &&
value !== "" &&
(!Object.getOwnPropertyNames(value).includes("length") ||
value.length != 0) &&
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0)
);
}

const parseBody = (streamBody: any, context: __SerdeContext): any => {
return collectBodyString(streamBody, context).then(encoded => {
if (encoded.length) {
Expand Down
Loading

0 comments on commit 8e077c7

Please sign in to comment.