Skip to content

chore(codegen): generate corresponding clients #7016

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
70 changes: 35 additions & 35 deletions private/aws-restjson-server/src/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ export const deserializeAllQueryStringTypesRequest = async (
);
if (contentTypeHeaderKey != null) {
const contentType = output.headers[contentTypeHeaderKey];
if (contentType !== undefined && contentType !== "application/json") {
if (contentType !== undefined) {
throw new __UnsupportedMediaTypeException();
}
}
Expand Down Expand Up @@ -614,7 +614,7 @@ export const deserializeConstantAndVariableQueryStringRequest = async (
);
if (contentTypeHeaderKey != null) {
const contentType = output.headers[contentTypeHeaderKey];
if (contentType !== undefined && contentType !== "application/json") {
if (contentType !== undefined) {
throw new __UnsupportedMediaTypeException();
}
}
Expand Down Expand Up @@ -668,7 +668,7 @@ export const deserializeConstantQueryStringRequest = async (
);
if (contentTypeHeaderKey != null) {
const contentType = output.headers[contentTypeHeaderKey];
if (contentType !== undefined && contentType !== "application/json") {
if (contentType !== undefined) {
throw new __UnsupportedMediaTypeException();
}
}
Expand Down Expand Up @@ -838,7 +838,7 @@ export const deserializeEmptyInputAndEmptyOutputRequest = async (
);
if (contentTypeHeaderKey != null) {
const contentType = output.headers[contentTypeHeaderKey];
if (contentType !== undefined && contentType !== "application/json") {
if (contentType !== undefined) {
throw new __UnsupportedMediaTypeException();
}
}
Expand Down Expand Up @@ -1146,7 +1146,7 @@ export const deserializeHttpPrefixHeadersRequest = async (
);
if (contentTypeHeaderKey != null) {
const contentType = output.headers[contentTypeHeaderKey];
if (contentType !== undefined && contentType !== "application/json") {
if (contentType !== undefined) {
throw new __UnsupportedMediaTypeException();
}
}
Expand Down Expand Up @@ -1182,7 +1182,7 @@ export const deserializeHttpPrefixHeadersInResponseRequest = async (
);
if (contentTypeHeaderKey != null) {
const contentType = output.headers[contentTypeHeaderKey];
if (contentType !== undefined && contentType !== "application/json") {
if (contentType !== undefined) {
throw new __UnsupportedMediaTypeException();
}
}
Expand All @@ -1207,7 +1207,7 @@ export const deserializeHttpRequestWithFloatLabelsRequest = async (
);
if (contentTypeHeaderKey != null) {
const contentType = output.headers[contentTypeHeaderKey];
if (contentType !== undefined && contentType !== "application/json") {
if (contentType !== undefined) {
throw new __UnsupportedMediaTypeException();
}
}
Expand Down Expand Up @@ -1238,7 +1238,7 @@ export const deserializeHttpRequestWithGreedyLabelInPathRequest = async (
);
if (contentTypeHeaderKey != null) {
const contentType = output.headers[contentTypeHeaderKey];
if (contentType !== undefined && contentType !== "application/json") {
if (contentType !== undefined) {
throw new __UnsupportedMediaTypeException();
}
}
Expand Down Expand Up @@ -1269,7 +1269,7 @@ export const deserializeHttpRequestWithLabelsRequest = async (
);
if (contentTypeHeaderKey != null) {
const contentType = output.headers[contentTypeHeaderKey];
if (contentType !== undefined && contentType !== "application/json") {
if (contentType !== undefined) {
throw new __UnsupportedMediaTypeException();
}
}
Expand Down Expand Up @@ -1308,7 +1308,7 @@ export const deserializeHttpRequestWithLabelsAndTimestampFormatRequest = async (
);
if (contentTypeHeaderKey != null) {
const contentType = output.headers[contentTypeHeaderKey];
if (contentType !== undefined && contentType !== "application/json") {
if (contentType !== undefined) {
throw new __UnsupportedMediaTypeException();
}
}
Expand Down Expand Up @@ -1360,7 +1360,7 @@ export const deserializeHttpRequestWithRegexLiteralRequest = async (
);
if (contentTypeHeaderKey != null) {
const contentType = output.headers[contentTypeHeaderKey];
if (contentType !== undefined && contentType !== "application/json") {
if (contentType !== undefined) {
throw new __UnsupportedMediaTypeException();
}
}
Expand Down Expand Up @@ -1466,7 +1466,7 @@ export const deserializeInputAndOutputWithHeadersRequest = async (
);
if (contentTypeHeaderKey != null) {
const contentType = output.headers[contentTypeHeaderKey];
if (contentType !== undefined && contentType !== "application/json") {
if (contentType !== undefined) {
throw new __UnsupportedMediaTypeException();
}
}
Expand Down Expand Up @@ -2053,7 +2053,7 @@ export const deserializeMalformedContentTypeWithoutBodyEmptyInputRequest = async
);
if (contentTypeHeaderKey != null) {
const contentType = output.headers[contentTypeHeaderKey];
if (contentType !== undefined && contentType !== "application/json") {
if (contentType !== undefined) {
throw new __UnsupportedMediaTypeException();
}
}
Expand Down Expand Up @@ -2454,7 +2454,7 @@ export const deserializeMalformedStringRequest = async (
);
if (contentTypeHeaderKey != null) {
const contentType = output.headers[contentTypeHeaderKey];
if (contentType !== undefined && contentType !== "application/json") {
if (contentType !== undefined) {
throw new __UnsupportedMediaTypeException();
}
}
Expand Down Expand Up @@ -2571,7 +2571,7 @@ export const deserializeMalformedTimestampHeaderDateTimeRequest = async (
);
if (contentTypeHeaderKey != null) {
const contentType = output.headers[contentTypeHeaderKey];
if (contentType !== undefined && contentType !== "application/json") {
if (contentType !== undefined) {
throw new __UnsupportedMediaTypeException();
}
}
Expand All @@ -2598,7 +2598,7 @@ export const deserializeMalformedTimestampHeaderDefaultRequest = async (
);
if (contentTypeHeaderKey != null) {
const contentType = output.headers[contentTypeHeaderKey];
if (contentType !== undefined && contentType !== "application/json") {
if (contentType !== undefined) {
throw new __UnsupportedMediaTypeException();
}
}
Expand All @@ -2625,7 +2625,7 @@ export const deserializeMalformedTimestampHeaderEpochRequest = async (
);
if (contentTypeHeaderKey != null) {
const contentType = output.headers[contentTypeHeaderKey];
if (contentType !== undefined && contentType !== "application/json") {
if (contentType !== undefined) {
throw new __UnsupportedMediaTypeException();
}
}
Expand All @@ -2652,7 +2652,7 @@ export const deserializeMalformedTimestampPathDefaultRequest = async (
);
if (contentTypeHeaderKey != null) {
const contentType = output.headers[contentTypeHeaderKey];
if (contentType !== undefined && contentType !== "application/json") {
if (contentType !== undefined) {
throw new __UnsupportedMediaTypeException();
}
}
Expand Down Expand Up @@ -2682,7 +2682,7 @@ export const deserializeMalformedTimestampPathEpochRequest = async (
);
if (contentTypeHeaderKey != null) {
const contentType = output.headers[contentTypeHeaderKey];
if (contentType !== undefined && contentType !== "application/json") {
if (contentType !== undefined) {
throw new __UnsupportedMediaTypeException();
}
}
Expand Down Expand Up @@ -2712,7 +2712,7 @@ export const deserializeMalformedTimestampPathHttpDateRequest = async (
);
if (contentTypeHeaderKey != null) {
const contentType = output.headers[contentTypeHeaderKey];
if (contentType !== undefined && contentType !== "application/json") {
if (contentType !== undefined) {
throw new __UnsupportedMediaTypeException();
}
}
Expand Down Expand Up @@ -2742,7 +2742,7 @@ export const deserializeMalformedTimestampQueryDefaultRequest = async (
);
if (contentTypeHeaderKey != null) {
const contentType = output.headers[contentTypeHeaderKey];
if (contentType !== undefined && contentType !== "application/json") {
if (contentType !== undefined) {
throw new __UnsupportedMediaTypeException();
}
}
Expand Down Expand Up @@ -2783,7 +2783,7 @@ export const deserializeMalformedTimestampQueryEpochRequest = async (
);
if (contentTypeHeaderKey != null) {
const contentType = output.headers[contentTypeHeaderKey];
if (contentType !== undefined && contentType !== "application/json") {
if (contentType !== undefined) {
throw new __UnsupportedMediaTypeException();
}
}
Expand Down Expand Up @@ -2824,7 +2824,7 @@ export const deserializeMalformedTimestampQueryHttpDateRequest = async (
);
if (contentTypeHeaderKey != null) {
const contentType = output.headers[contentTypeHeaderKey];
if (contentType !== undefined && contentType !== "application/json") {
if (contentType !== undefined) {
throw new __UnsupportedMediaTypeException();
}
}
Expand Down Expand Up @@ -2894,7 +2894,7 @@ export const deserializeMediaTypeHeaderRequest = async (
);
if (contentTypeHeaderKey != null) {
const contentType = output.headers[contentTypeHeaderKey];
if (contentType !== undefined && contentType !== "application/json") {
if (contentType !== undefined) {
throw new __UnsupportedMediaTypeException();
}
}
Expand Down Expand Up @@ -2974,7 +2974,7 @@ export const deserializeNullAndEmptyHeadersClientRequest = async (
);
if (contentTypeHeaderKey != null) {
const contentType = output.headers[contentTypeHeaderKey];
if (contentType !== undefined && contentType !== "application/json") {
if (contentType !== undefined) {
throw new __UnsupportedMediaTypeException();
}
}
Expand Down Expand Up @@ -3006,7 +3006,7 @@ export const deserializeNullAndEmptyHeadersServerRequest = async (
);
if (contentTypeHeaderKey != null) {
const contentType = output.headers[contentTypeHeaderKey];
if (contentType !== undefined && contentType !== "application/json") {
if (contentType !== undefined) {
throw new __UnsupportedMediaTypeException();
}
}
Expand Down Expand Up @@ -3038,7 +3038,7 @@ export const deserializeOmitsNullSerializesEmptyStringRequest = async (
);
if (contentTypeHeaderKey != null) {
const contentType = output.headers[contentTypeHeaderKey];
if (contentType !== undefined && contentType !== "application/json") {
if (contentType !== undefined) {
throw new __UnsupportedMediaTypeException();
}
}
Expand Down Expand Up @@ -3092,7 +3092,7 @@ export const deserializeOmitsSerializingEmptyListsRequest = async (
);
if (contentTypeHeaderKey != null) {
const contentType = output.headers[contentTypeHeaderKey];
if (contentType !== undefined && contentType !== "application/json") {
if (contentType !== undefined) {
throw new __UnsupportedMediaTypeException();
}
}
Expand Down Expand Up @@ -3312,7 +3312,7 @@ export const deserializeQueryIdempotencyTokenAutoFillRequest = async (
);
if (contentTypeHeaderKey != null) {
const contentType = output.headers[contentTypeHeaderKey];
if (contentType !== undefined && contentType !== "application/json") {
if (contentType !== undefined) {
throw new __UnsupportedMediaTypeException();
}
}
Expand Down Expand Up @@ -3353,7 +3353,7 @@ export const deserializeQueryParamsAsStringListMapRequest = async (
);
if (contentTypeHeaderKey != null) {
const contentType = output.headers[contentTypeHeaderKey];
if (contentType !== undefined && contentType !== "application/json") {
if (contentType !== undefined) {
throw new __UnsupportedMediaTypeException();
}
}
Expand Down Expand Up @@ -3401,7 +3401,7 @@ export const deserializeQueryPrecedenceRequest = async (
);
if (contentTypeHeaderKey != null) {
const contentType = output.headers[contentTypeHeaderKey];
if (contentType !== undefined && contentType !== "application/json") {
if (contentType !== undefined) {
throw new __UnsupportedMediaTypeException();
}
}
Expand Down Expand Up @@ -3486,7 +3486,7 @@ export const deserializeResponseCodeHttpFallbackRequest = async (
);
if (contentTypeHeaderKey != null) {
const contentType = output.headers[contentTypeHeaderKey];
if (contentType !== undefined && contentType !== "application/json") {
if (contentType !== undefined) {
throw new __UnsupportedMediaTypeException();
}
}
Expand Down Expand Up @@ -3753,7 +3753,7 @@ export const deserializeTestGetNoPayloadRequest = async (
);
if (contentTypeHeaderKey != null) {
const contentType = output.headers[contentTypeHeaderKey];
if (contentType !== undefined && contentType !== "application/json") {
if (contentType !== undefined) {
throw new __UnsupportedMediaTypeException();
}
}
Expand Down Expand Up @@ -3845,7 +3845,7 @@ export const deserializeTestPostNoPayloadRequest = async (
);
if (contentTypeHeaderKey != null) {
const contentType = output.headers[contentTypeHeaderKey];
if (contentType !== undefined && contentType !== "application/json") {
if (contentType !== undefined) {
throw new __UnsupportedMediaTypeException();
}
}
Expand All @@ -3872,7 +3872,7 @@ export const deserializeTimestampFormatHeadersRequest = async (
);
if (contentTypeHeaderKey != null) {
const contentType = output.headers[contentTypeHeaderKey];
if (contentType !== undefined && contentType !== "application/json") {
if (contentType !== undefined) {
throw new __UnsupportedMediaTypeException();
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ export const deserializeMalformedLengthQueryStringRequest = async (
);
if (contentTypeHeaderKey != null) {
const contentType = output.headers[contentTypeHeaderKey];
if (contentType !== undefined && contentType !== "application/json") {
if (contentType !== undefined) {
throw new __UnsupportedMediaTypeException();
}
}
Expand Down
Loading