Skip to content

Commit

Permalink
codegen: Fix SDK's serialization of operations with empty inputs (#1071)
Browse files Browse the repository at this point in the history
Fixes the JSON RPC API clients to serialize empty JSON objects for stub
synthetic cloned inputs. Also this ensure empty JSON modeled inputs are
correctly serialized. Previously the SDK would incorrectly skip
serialization for JSON RPC input shapes with no members. Whereas JSON
RPC requires operations with input modeled serialize empty JSON object.
  • Loading branch information
jasdel authored Jan 26, 2021
1 parent 409c761 commit bbf9460
Show file tree
Hide file tree
Showing 92 changed files with 1,170 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"ID": "internal.protocoltest.jsonrpc10-bugfix-1611357209709451000",
"SchemaVersion": 1,
"Module": "internal/protocoltest/jsonrpc10",
"Type": "bugfix",
"Description": "fix serialize input",
"MinVersion": "",
"AffectedModules": null
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"ID": "service.alexaforbusiness-bugfix-1611357209739908000",
"SchemaVersion": 1,
"Module": "service/alexaforbusiness",
"Type": "bugfix",
"Description": "fix serialize input",
"MinVersion": "",
"AffectedModules": null
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"ID": "service.applicationdiscoveryservice-bugfix-1611357209770363000",
"SchemaVersion": 1,
"Module": "service/applicationdiscoveryservice",
"Type": "bugfix",
"Description": "fix serialize input",
"MinVersion": "",
"AffectedModules": null
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"ID": "service.appstream-bugfix-1611357209799313000",
"SchemaVersion": 1,
"Module": "service/appstream",
"Type": "bugfix",
"Description": "fix serialize input",
"MinVersion": "",
"AffectedModules": null
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"ID": "service.cloudhsm-bugfix-1611357209833690000",
"SchemaVersion": 1,
"Module": "service/cloudhsm",
"Type": "bugfix",
"Description": "fix serialize input",
"MinVersion": "",
"AffectedModules": null
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"ID": "service.codebuild-bugfix-1611357209867885000",
"SchemaVersion": 1,
"Module": "service/codebuild",
"Type": "bugfix",
"Description": "fix serialize input",
"MinVersion": "",
"AffectedModules": null
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"ID": "service.computeoptimizer-bugfix-1611357209896608000",
"SchemaVersion": 1,
"Module": "service/computeoptimizer",
"Type": "bugfix",
"Description": "fix serialize input",
"MinVersion": "",
"AffectedModules": null
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"ID": "service.configservice-bugfix-1611613942022981000",
"SchemaVersion": 1,
"Module": "service/configservice",
"Type": "bugfix",
"Description": "fix serialization bug",
"MinVersion": "",
"AffectedModules": null
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"ID": "service.databasemigrationservice-bugfix-1611357209925386000",
"SchemaVersion": 1,
"Module": "service/databasemigrationservice",
"Type": "bugfix",
"Description": "fix serialize input",
"MinVersion": "",
"AffectedModules": null
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"ID": "service.devicefarm-bugfix-1611357209954528000",
"SchemaVersion": 1,
"Module": "service/devicefarm",
"Type": "bugfix",
"Description": "fix serialize input",
"MinVersion": "",
"AffectedModules": null
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"ID": "service.directconnect-bugfix-1611613942069471000",
"SchemaVersion": 1,
"Module": "service/directconnect",
"Type": "bugfix",
"Description": "fix serialization bug",
"MinVersion": "",
"AffectedModules": null
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"ID": "service.directoryservice-bugfix-1611357209984252000",
"SchemaVersion": 1,
"Module": "service/directoryservice",
"Type": "bugfix",
"Description": "fix serialize input",
"MinVersion": "",
"AffectedModules": null
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"ID": "service.dynamodb-bugfix-1611357210012367000",
"SchemaVersion": 1,
"Module": "service/dynamodb",
"Type": "bugfix",
"Description": "fix serialize input",
"MinVersion": "",
"AffectedModules": null
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"ID": "service.ecr-bugfix-1611357210042346000",
"SchemaVersion": 1,
"Module": "service/ecr",
"Type": "bugfix",
"Description": "fix serialize input",
"MinVersion": "",
"AffectedModules": null
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"ID": "service.ecrpublic-bugfix-1611357210072965000",
"SchemaVersion": 1,
"Module": "service/ecrpublic",
"Type": "bugfix",
"Description": "fix serialize input",
"MinVersion": "",
"AffectedModules": null
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"ID": "service.emr-bugfix-1611357210103086000",
"SchemaVersion": 1,
"Module": "service/emr",
"Type": "bugfix",
"Description": "fix serialize input",
"MinVersion": "",
"AffectedModules": null
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"ID": "service.fms-bugfix-1611357210135329000",
"SchemaVersion": 1,
"Module": "service/fms",
"Type": "bugfix",
"Description": "fix serialize input",
"MinVersion": "",
"AffectedModules": null
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"ID": "service.frauddetector-bugfix-1611613942115720000",
"SchemaVersion": 1,
"Module": "service/frauddetector",
"Type": "bugfix",
"Description": "fix serialization bug",
"MinVersion": "",
"AffectedModules": null
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"ID": "service.gamelift-bugfix-1611357210172021000",
"SchemaVersion": 1,
"Module": "service/gamelift",
"Type": "bugfix",
"Description": "fix serialize input",
"MinVersion": "",
"AffectedModules": null
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"ID": "service.health-bugfix-1611613942164040000",
"SchemaVersion": 1,
"Module": "service/health",
"Type": "bugfix",
"Description": "fix serialization bug",
"MinVersion": "",
"AffectedModules": null
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"ID": "service.inspector-bugfix-1611613942206631000",
"SchemaVersion": 1,
"Module": "service/inspector",
"Type": "bugfix",
"Description": "fix serialization bug",
"MinVersion": "",
"AffectedModules": null
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"ID": "service.internal.accept-encoding-bugfix-1611357210203312000",
"SchemaVersion": 1,
"Module": "service/internal/accept-encoding",
"Type": "bugfix",
"Description": "fix serialize input",
"MinVersion": "",
"AffectedModules": null
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"ID": "service.internal.benchmark-bugfix-1611357210232400000",
"SchemaVersion": 1,
"Module": "service/internal/benchmark",
"Type": "bugfix",
"Description": "fix serialize input",
"MinVersion": "",
"AffectedModules": null
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"ID": "service.internal.integrationtest-bugfix-1611357210263276000",
"SchemaVersion": 1,
"Module": "service/internal/integrationtest",
"Type": "bugfix",
"Description": "fix serialize input",
"MinVersion": "",
"AffectedModules": null
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"ID": "service.iotthingsgraph-bugfix-1611357210295391000",
"SchemaVersion": 1,
"Module": "service/iotthingsgraph",
"Type": "bugfix",
"Description": "fix serialize input",
"MinVersion": "",
"AffectedModules": null
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"ID": "service.kinesis-bugfix-1611357210327390000",
"SchemaVersion": 1,
"Module": "service/kinesis",
"Type": "bugfix",
"Description": "fix serialize input",
"MinVersion": "",
"AffectedModules": null
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"ID": "service.licensemanager-bugfix-1611357210359662000",
"SchemaVersion": 1,
"Module": "service/licensemanager",
"Type": "bugfix",
"Description": "fix serialize input",
"MinVersion": "",
"AffectedModules": null
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"ID": "service.lightsail-bugfix-1611357210391396000",
"SchemaVersion": 1,
"Module": "service/lightsail",
"Type": "bugfix",
"Description": "fix serialize input",
"MinVersion": "",
"AffectedModules": null
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"ID": "service.migrationhubconfig-bugfix-1611357210424805000",
"SchemaVersion": 1,
"Module": "service/migrationhubconfig",
"Type": "bugfix",
"Description": "fix serialize input",
"MinVersion": "",
"AffectedModules": null
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"ID": "service.mturk-bugfix-1611357210457906000",
"SchemaVersion": 1,
"Module": "service/mturk",
"Type": "bugfix",
"Description": "fix serialize input",
"MinVersion": "",
"AffectedModules": null
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"ID": "service.opsworks-bugfix-1611613958948628000",
"SchemaVersion": 1,
"Module": "service/opsworks",
"Type": "bugfix",
"Description": "fix serialization bug",
"MinVersion": "",
"AffectedModules": null
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"ID": "service.organizations-bugfix-1611357210532236000",
"SchemaVersion": 1,
"Module": "service/organizations",
"Type": "bugfix",
"Description": "fix serialize input",
"MinVersion": "",
"AffectedModules": null
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"ID": "service.resourcegroupstaggingapi-bugfix-1611357210567493000",
"SchemaVersion": 1,
"Module": "service/resourcegroupstaggingapi",
"Type": "bugfix",
"Description": "fix serialize input",
"MinVersion": "",
"AffectedModules": null
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"ID": "service.s3-bugfix-1611357210600701000",
"SchemaVersion": 1,
"Module": "service/s3",
"Type": "bugfix",
"Description": "fix serialize input",
"MinVersion": "",
"AffectedModules": null
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"ID": "service.sagemaker-bugfix-1611357210632860000",
"SchemaVersion": 1,
"Module": "service/sagemaker",
"Type": "bugfix",
"Description": "fix serialize input",
"MinVersion": "",
"AffectedModules": null
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"ID": "service.servicecatalog-bugfix-1611357210666203000",
"SchemaVersion": 1,
"Module": "service/servicecatalog",
"Type": "bugfix",
"Description": "fix serialize input",
"MinVersion": "",
"AffectedModules": null
}
Loading

0 comments on commit bbf9460

Please sign in to comment.