Skip to content

Commit 31fd0ea

Browse files
committed
chore(codegen): diff after updating to use HttpBindingIndex.hasRequestBody
1 parent 80704a0 commit 31fd0ea

File tree

2 files changed

+33
-33
lines changed

2 files changed

+33
-33
lines changed

private/aws-restjson-server/src/protocols/Aws_restJson1.ts

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ export const deserializeAllQueryStringTypesRequest = async (
382382
);
383383
if (contentTypeHeaderKey != null) {
384384
const contentType = output.headers[contentTypeHeaderKey];
385-
if (contentType !== undefined && contentType !== "application/json") {
385+
if (contentType !== undefined) {
386386
throw new __UnsupportedMediaTypeException();
387387
}
388388
}
@@ -614,7 +614,7 @@ export const deserializeConstantAndVariableQueryStringRequest = async (
614614
);
615615
if (contentTypeHeaderKey != null) {
616616
const contentType = output.headers[contentTypeHeaderKey];
617-
if (contentType !== undefined && contentType !== "application/json") {
617+
if (contentType !== undefined) {
618618
throw new __UnsupportedMediaTypeException();
619619
}
620620
}
@@ -668,7 +668,7 @@ export const deserializeConstantQueryStringRequest = async (
668668
);
669669
if (contentTypeHeaderKey != null) {
670670
const contentType = output.headers[contentTypeHeaderKey];
671-
if (contentType !== undefined && contentType !== "application/json") {
671+
if (contentType !== undefined) {
672672
throw new __UnsupportedMediaTypeException();
673673
}
674674
}
@@ -1146,7 +1146,7 @@ export const deserializeHttpPrefixHeadersRequest = async (
11461146
);
11471147
if (contentTypeHeaderKey != null) {
11481148
const contentType = output.headers[contentTypeHeaderKey];
1149-
if (contentType !== undefined && contentType !== "application/json") {
1149+
if (contentType !== undefined) {
11501150
throw new __UnsupportedMediaTypeException();
11511151
}
11521152
}
@@ -1207,7 +1207,7 @@ export const deserializeHttpRequestWithFloatLabelsRequest = async (
12071207
);
12081208
if (contentTypeHeaderKey != null) {
12091209
const contentType = output.headers[contentTypeHeaderKey];
1210-
if (contentType !== undefined && contentType !== "application/json") {
1210+
if (contentType !== undefined) {
12111211
throw new __UnsupportedMediaTypeException();
12121212
}
12131213
}
@@ -1238,7 +1238,7 @@ export const deserializeHttpRequestWithGreedyLabelInPathRequest = async (
12381238
);
12391239
if (contentTypeHeaderKey != null) {
12401240
const contentType = output.headers[contentTypeHeaderKey];
1241-
if (contentType !== undefined && contentType !== "application/json") {
1241+
if (contentType !== undefined) {
12421242
throw new __UnsupportedMediaTypeException();
12431243
}
12441244
}
@@ -1269,7 +1269,7 @@ export const deserializeHttpRequestWithLabelsRequest = async (
12691269
);
12701270
if (contentTypeHeaderKey != null) {
12711271
const contentType = output.headers[contentTypeHeaderKey];
1272-
if (contentType !== undefined && contentType !== "application/json") {
1272+
if (contentType !== undefined) {
12731273
throw new __UnsupportedMediaTypeException();
12741274
}
12751275
}
@@ -1308,7 +1308,7 @@ export const deserializeHttpRequestWithLabelsAndTimestampFormatRequest = async (
13081308
);
13091309
if (contentTypeHeaderKey != null) {
13101310
const contentType = output.headers[contentTypeHeaderKey];
1311-
if (contentType !== undefined && contentType !== "application/json") {
1311+
if (contentType !== undefined) {
13121312
throw new __UnsupportedMediaTypeException();
13131313
}
13141314
}
@@ -1360,7 +1360,7 @@ export const deserializeHttpRequestWithRegexLiteralRequest = async (
13601360
);
13611361
if (contentTypeHeaderKey != null) {
13621362
const contentType = output.headers[contentTypeHeaderKey];
1363-
if (contentType !== undefined && contentType !== "application/json") {
1363+
if (contentType !== undefined) {
13641364
throw new __UnsupportedMediaTypeException();
13651365
}
13661366
}
@@ -1466,7 +1466,7 @@ export const deserializeInputAndOutputWithHeadersRequest = async (
14661466
);
14671467
if (contentTypeHeaderKey != null) {
14681468
const contentType = output.headers[contentTypeHeaderKey];
1469-
if (contentType !== undefined && contentType !== "application/json") {
1469+
if (contentType !== undefined) {
14701470
throw new __UnsupportedMediaTypeException();
14711471
}
14721472
}
@@ -2053,7 +2053,7 @@ export const deserializeMalformedContentTypeWithoutBodyEmptyInputRequest = async
20532053
);
20542054
if (contentTypeHeaderKey != null) {
20552055
const contentType = output.headers[contentTypeHeaderKey];
2056-
if (contentType !== undefined && contentType !== "application/json") {
2056+
if (contentType !== undefined) {
20572057
throw new __UnsupportedMediaTypeException();
20582058
}
20592059
}
@@ -2454,7 +2454,7 @@ export const deserializeMalformedStringRequest = async (
24542454
);
24552455
if (contentTypeHeaderKey != null) {
24562456
const contentType = output.headers[contentTypeHeaderKey];
2457-
if (contentType !== undefined && contentType !== "application/json") {
2457+
if (contentType !== undefined) {
24582458
throw new __UnsupportedMediaTypeException();
24592459
}
24602460
}
@@ -2571,7 +2571,7 @@ export const deserializeMalformedTimestampHeaderDateTimeRequest = async (
25712571
);
25722572
if (contentTypeHeaderKey != null) {
25732573
const contentType = output.headers[contentTypeHeaderKey];
2574-
if (contentType !== undefined && contentType !== "application/json") {
2574+
if (contentType !== undefined) {
25752575
throw new __UnsupportedMediaTypeException();
25762576
}
25772577
}
@@ -2598,7 +2598,7 @@ export const deserializeMalformedTimestampHeaderDefaultRequest = async (
25982598
);
25992599
if (contentTypeHeaderKey != null) {
26002600
const contentType = output.headers[contentTypeHeaderKey];
2601-
if (contentType !== undefined && contentType !== "application/json") {
2601+
if (contentType !== undefined) {
26022602
throw new __UnsupportedMediaTypeException();
26032603
}
26042604
}
@@ -2625,7 +2625,7 @@ export const deserializeMalformedTimestampHeaderEpochRequest = async (
26252625
);
26262626
if (contentTypeHeaderKey != null) {
26272627
const contentType = output.headers[contentTypeHeaderKey];
2628-
if (contentType !== undefined && contentType !== "application/json") {
2628+
if (contentType !== undefined) {
26292629
throw new __UnsupportedMediaTypeException();
26302630
}
26312631
}
@@ -2652,7 +2652,7 @@ export const deserializeMalformedTimestampPathDefaultRequest = async (
26522652
);
26532653
if (contentTypeHeaderKey != null) {
26542654
const contentType = output.headers[contentTypeHeaderKey];
2655-
if (contentType !== undefined && contentType !== "application/json") {
2655+
if (contentType !== undefined) {
26562656
throw new __UnsupportedMediaTypeException();
26572657
}
26582658
}
@@ -2682,7 +2682,7 @@ export const deserializeMalformedTimestampPathEpochRequest = async (
26822682
);
26832683
if (contentTypeHeaderKey != null) {
26842684
const contentType = output.headers[contentTypeHeaderKey];
2685-
if (contentType !== undefined && contentType !== "application/json") {
2685+
if (contentType !== undefined) {
26862686
throw new __UnsupportedMediaTypeException();
26872687
}
26882688
}
@@ -2712,7 +2712,7 @@ export const deserializeMalformedTimestampPathHttpDateRequest = async (
27122712
);
27132713
if (contentTypeHeaderKey != null) {
27142714
const contentType = output.headers[contentTypeHeaderKey];
2715-
if (contentType !== undefined && contentType !== "application/json") {
2715+
if (contentType !== undefined) {
27162716
throw new __UnsupportedMediaTypeException();
27172717
}
27182718
}
@@ -2742,7 +2742,7 @@ export const deserializeMalformedTimestampQueryDefaultRequest = async (
27422742
);
27432743
if (contentTypeHeaderKey != null) {
27442744
const contentType = output.headers[contentTypeHeaderKey];
2745-
if (contentType !== undefined && contentType !== "application/json") {
2745+
if (contentType !== undefined) {
27462746
throw new __UnsupportedMediaTypeException();
27472747
}
27482748
}
@@ -2783,7 +2783,7 @@ export const deserializeMalformedTimestampQueryEpochRequest = async (
27832783
);
27842784
if (contentTypeHeaderKey != null) {
27852785
const contentType = output.headers[contentTypeHeaderKey];
2786-
if (contentType !== undefined && contentType !== "application/json") {
2786+
if (contentType !== undefined) {
27872787
throw new __UnsupportedMediaTypeException();
27882788
}
27892789
}
@@ -2824,7 +2824,7 @@ export const deserializeMalformedTimestampQueryHttpDateRequest = async (
28242824
);
28252825
if (contentTypeHeaderKey != null) {
28262826
const contentType = output.headers[contentTypeHeaderKey];
2827-
if (contentType !== undefined && contentType !== "application/json") {
2827+
if (contentType !== undefined) {
28282828
throw new __UnsupportedMediaTypeException();
28292829
}
28302830
}
@@ -2894,7 +2894,7 @@ export const deserializeMediaTypeHeaderRequest = async (
28942894
);
28952895
if (contentTypeHeaderKey != null) {
28962896
const contentType = output.headers[contentTypeHeaderKey];
2897-
if (contentType !== undefined && contentType !== "application/json") {
2897+
if (contentType !== undefined) {
28982898
throw new __UnsupportedMediaTypeException();
28992899
}
29002900
}
@@ -2974,7 +2974,7 @@ export const deserializeNullAndEmptyHeadersClientRequest = async (
29742974
);
29752975
if (contentTypeHeaderKey != null) {
29762976
const contentType = output.headers[contentTypeHeaderKey];
2977-
if (contentType !== undefined && contentType !== "application/json") {
2977+
if (contentType !== undefined) {
29782978
throw new __UnsupportedMediaTypeException();
29792979
}
29802980
}
@@ -3006,7 +3006,7 @@ export const deserializeNullAndEmptyHeadersServerRequest = async (
30063006
);
30073007
if (contentTypeHeaderKey != null) {
30083008
const contentType = output.headers[contentTypeHeaderKey];
3009-
if (contentType !== undefined && contentType !== "application/json") {
3009+
if (contentType !== undefined) {
30103010
throw new __UnsupportedMediaTypeException();
30113011
}
30123012
}
@@ -3038,7 +3038,7 @@ export const deserializeOmitsNullSerializesEmptyStringRequest = async (
30383038
);
30393039
if (contentTypeHeaderKey != null) {
30403040
const contentType = output.headers[contentTypeHeaderKey];
3041-
if (contentType !== undefined && contentType !== "application/json") {
3041+
if (contentType !== undefined) {
30423042
throw new __UnsupportedMediaTypeException();
30433043
}
30443044
}
@@ -3092,7 +3092,7 @@ export const deserializeOmitsSerializingEmptyListsRequest = async (
30923092
);
30933093
if (contentTypeHeaderKey != null) {
30943094
const contentType = output.headers[contentTypeHeaderKey];
3095-
if (contentType !== undefined && contentType !== "application/json") {
3095+
if (contentType !== undefined) {
30963096
throw new __UnsupportedMediaTypeException();
30973097
}
30983098
}
@@ -3312,7 +3312,7 @@ export const deserializeQueryIdempotencyTokenAutoFillRequest = async (
33123312
);
33133313
if (contentTypeHeaderKey != null) {
33143314
const contentType = output.headers[contentTypeHeaderKey];
3315-
if (contentType !== undefined && contentType !== "application/json") {
3315+
if (contentType !== undefined) {
33163316
throw new __UnsupportedMediaTypeException();
33173317
}
33183318
}
@@ -3353,7 +3353,7 @@ export const deserializeQueryParamsAsStringListMapRequest = async (
33533353
);
33543354
if (contentTypeHeaderKey != null) {
33553355
const contentType = output.headers[contentTypeHeaderKey];
3356-
if (contentType !== undefined && contentType !== "application/json") {
3356+
if (contentType !== undefined) {
33573357
throw new __UnsupportedMediaTypeException();
33583358
}
33593359
}
@@ -3401,7 +3401,7 @@ export const deserializeQueryPrecedenceRequest = async (
34013401
);
34023402
if (contentTypeHeaderKey != null) {
34033403
const contentType = output.headers[contentTypeHeaderKey];
3404-
if (contentType !== undefined && contentType !== "application/json") {
3404+
if (contentType !== undefined) {
34053405
throw new __UnsupportedMediaTypeException();
34063406
}
34073407
}
@@ -3753,7 +3753,7 @@ export const deserializeTestGetNoPayloadRequest = async (
37533753
);
37543754
if (contentTypeHeaderKey != null) {
37553755
const contentType = output.headers[contentTypeHeaderKey];
3756-
if (contentType !== undefined && contentType !== "application/json") {
3756+
if (contentType !== undefined) {
37573757
throw new __UnsupportedMediaTypeException();
37583758
}
37593759
}
@@ -3845,7 +3845,7 @@ export const deserializeTestPostNoPayloadRequest = async (
38453845
);
38463846
if (contentTypeHeaderKey != null) {
38473847
const contentType = output.headers[contentTypeHeaderKey];
3848-
if (contentType !== undefined && contentType !== "application/json") {
3848+
if (contentType !== undefined) {
38493849
throw new __UnsupportedMediaTypeException();
38503850
}
38513851
}
@@ -3872,7 +3872,7 @@ export const deserializeTimestampFormatHeadersRequest = async (
38723872
);
38733873
if (contentTypeHeaderKey != null) {
38743874
const contentType = output.headers[contentTypeHeaderKey];
3875-
if (contentType !== undefined && contentType !== "application/json") {
3875+
if (contentType !== undefined) {
38763876
throw new __UnsupportedMediaTypeException();
38773877
}
38783878
}

private/aws-restjson-validation-server/src/protocols/Aws_restJson1.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ export const deserializeMalformedLengthQueryStringRequest = async (
201201
);
202202
if (contentTypeHeaderKey != null) {
203203
const contentType = output.headers[contentTypeHeaderKey];
204-
if (contentType !== undefined && contentType !== "application/json") {
204+
if (contentType !== undefined) {
205205
throw new __UnsupportedMediaTypeException();
206206
}
207207
}

0 commit comments

Comments
 (0)