Skip to content

Commit 23d5fe8

Browse files
authoredFeb 17, 2025··
fix(clients): unknown union member serialization in json (#6892)
1 parent b2252ef commit 23d5fe8

File tree

43 files changed

+91
-91
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+91
-91
lines changed
 

‎clients/client-amp/src/protocols/Aws_restJson1.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1455,7 +1455,7 @@ const de_ValidationExceptionRes = async (parsedOutput: any, context: __SerdeCont
14551455
const se_ScrapeConfiguration = (input: ScrapeConfiguration, context: __SerdeContext): any => {
14561456
return ScrapeConfiguration.visit(input, {
14571457
configurationBlob: (value) => ({ configurationBlob: context.base64Encoder(value) }),
1458-
_: (name, value) => ({ name: value } as any),
1458+
_: (name, value) => ({ [name]: value } as any),
14591459
});
14601460
};
14611461

‎clients/client-application-discovery-service/src/protocols/Aws_json1_1.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1384,7 +1384,7 @@ const se_ExportPreferences = (input: ExportPreferences, context: __SerdeContext)
13841384
ec2RecommendationsPreferences: (value) => ({
13851385
ec2RecommendationsPreferences: se_Ec2RecommendationsExportPreferences(value, context),
13861386
}),
1387-
_: (name, value) => ({ name: value } as any),
1387+
_: (name, value) => ({ [name]: value } as any),
13881388
});
13891389
};
13901390

0 commit comments

Comments
 (0)
Please sign in to comment.