Skip to content

Commit 4d84f96

Browse files
siddsrivkuhe
authored andcommitted
fix(codegen): allow empty string field values for headers
1 parent 2406750 commit 4d84f96

File tree

1 file changed

+1
-6
lines changed
  • smithy-typescript-codegen/src/main/resources/software/amazon/smithy/typescript/codegen/integration

1 file changed

+1
-6
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,2 @@
11
const isSerializableHeaderValue = (value: any): boolean =>
2-
value !== undefined &&
3-
value !== null &&
4-
value !== "" &&
5-
(!Object.getOwnPropertyNames(value).includes("length") ||
6-
value.length != 0) &&
7-
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
2+
value != undefined && value != null;

0 commit comments

Comments
 (0)