diff --git a/codegen/smithy-aws-typescript-codegen/src/main/resources/software/amazon/smithy/aws/typescript/codegen/doc-client-utils.ts b/codegen/smithy-aws-typescript-codegen/src/main/resources/software/amazon/smithy/aws/typescript/codegen/doc-client-utils.ts index bea7b7464b2a..7a9fc68932a5 100644 --- a/codegen/smithy-aws-typescript-codegen/src/main/resources/software/amazon/smithy/aws/typescript/codegen/doc-client-utils.ts +++ b/codegen/smithy-aws-typescript-codegen/src/main/resources/software/amazon/smithy/aws/typescript/codegen/doc-client-utils.ts @@ -10,7 +10,7 @@ export type AllNodes = { }; const processObj = (obj: any, processFunc: Function, children?: KeyNode[] | AllNodes): any => { - if (obj) { + if (obj !== undefined) { if (!children || (Array.isArray(children) && children.length === 0)) { // Leaf of KeyNode, process the object. return processFunc(obj);