Skip to content

Commit 04d7cdb

Browse files
committed
chore: codegen to use array for SetShape
1 parent ae386fc commit 04d7cdb

File tree

4 files changed

+12
-16
lines changed

4 files changed

+12
-16
lines changed

protocol_tests/aws-ec2/protocols/Aws_ec2.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1838,7 +1838,7 @@ const deserializeAws_ec2XmlEnumsOutput = (
18381838
contents.fooEnumMap = deserializeAws_ec2FooEnumMap(wrappedItem, context);
18391839
}
18401840
if (output.fooEnumSet === "") {
1841-
contents.fooEnumSet = new Set([]);
1841+
contents.fooEnumSet = [];
18421842
}
18431843
if (
18441844
output["fooEnumSet"] !== undefined &&
@@ -1982,7 +1982,7 @@ const deserializeAws_ec2XmlListsOutput = (
19821982
contents.stringList = deserializeAws_ec2StringList(wrappedItem, context);
19831983
}
19841984
if (output.stringSet === "") {
1985-
contents.stringSet = new Set([]);
1985+
contents.stringSet = [];
19861986
}
19871987
if (
19881988
output["stringSet"] !== undefined &&

protocol_tests/aws-query/protocols/Aws_query.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2373,7 +2373,7 @@ const deserializeAws_queryXmlEnumsOutput = (
23732373
contents.fooEnumMap = deserializeAws_queryFooEnumMap(wrappedItem, context);
23742374
}
23752375
if (output.fooEnumSet === "") {
2376-
contents.fooEnumSet = new Set([]);
2376+
contents.fooEnumSet = [];
23772377
}
23782378
if (
23792379
output["fooEnumSet"] !== undefined &&
@@ -2523,7 +2523,7 @@ const deserializeAws_queryXmlListsOutput = (
25232523
contents.stringList = deserializeAws_queryStringList(wrappedItem, context);
25242524
}
25252525
if (output.stringSet === "") {
2526-
contents.stringSet = new Set([]);
2526+
contents.stringSet = [];
25272527
}
25282528
if (
25292529
output["stringSet"] !== undefined &&

protocol_tests/aws-restjson/protocols/Aws_restJson1_1.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2113,11 +2113,9 @@ export async function deserializeAws_restJson1_1InputAndOutputWithHeadersCommand
21132113
.map(_entry => _entry.trim());
21142114
}
21152115
if (output.headers["x-stringset"] !== undefined) {
2116-
contents.headerStringSet = new Set(
2117-
(output.headers["x-stringset"] || "")
2118-
.split(",")
2119-
.map(_entry => _entry.trim())
2120-
);
2116+
contents.headerStringSet = (output.headers["x-stringset"] || "")
2117+
.split(",")
2118+
.map(_entry => _entry.trim());
21212119
}
21222120
if (output.headers["x-timestamplist"] !== undefined) {
21232121
contents.headerTimestampList = __splitEvery(

protocol_tests/aws-restxml/protocols/Aws_restXml.ts

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2835,11 +2835,9 @@ export async function deserializeAws_restXmlInputAndOutputWithHeadersCommand(
28352835
.map(_entry => _entry.trim());
28362836
}
28372837
if (output.headers["x-stringset"] !== undefined) {
2838-
contents.headerStringSet = new Set(
2839-
(output.headers["x-stringset"] || "")
2840-
.split(",")
2841-
.map(_entry => _entry.trim())
2842-
);
2838+
contents.headerStringSet = (output.headers["x-stringset"] || "")
2839+
.split(",")
2840+
.map(_entry => _entry.trim());
28432841
}
28442842
if (output.headers["x-timestamplist"] !== undefined) {
28452843
contents.headerTimestampList = __splitEvery(
@@ -3678,7 +3676,7 @@ export async function deserializeAws_restXmlXmlEnumsCommand(
36783676
);
36793677
}
36803678
if (data.fooEnumSet === "") {
3681-
contents.fooEnumSet = new Set([]);
3679+
contents.fooEnumSet = [];
36823680
}
36833681
if (
36843682
data["fooEnumSet"] !== undefined &&
@@ -3866,7 +3864,7 @@ export async function deserializeAws_restXmlXmlListsCommand(
38663864
);
38673865
}
38683866
if (data.stringSet === "") {
3869-
contents.stringSet = new Set([]);
3867+
contents.stringSet = [];
38703868
}
38713869
if (
38723870
data["stringSet"] !== undefined &&

0 commit comments

Comments
 (0)