Skip to content

Commit bbf9460

Browse files
authored
codegen: Fix SDK's serialization of operations with empty inputs (#1071)
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.
1 parent 409c761 commit bbf9460

File tree

92 files changed

+1170
-6
lines changed

Some content is hidden

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

92 files changed

+1170
-6
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"ID": "internal.protocoltest.jsonrpc10-bugfix-1611357209709451000",
3+
"SchemaVersion": 1,
4+
"Module": "internal/protocoltest/jsonrpc10",
5+
"Type": "bugfix",
6+
"Description": "fix serialize input",
7+
"MinVersion": "",
8+
"AffectedModules": null
9+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"ID": "service.alexaforbusiness-bugfix-1611357209739908000",
3+
"SchemaVersion": 1,
4+
"Module": "service/alexaforbusiness",
5+
"Type": "bugfix",
6+
"Description": "fix serialize input",
7+
"MinVersion": "",
8+
"AffectedModules": null
9+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"ID": "service.applicationdiscoveryservice-bugfix-1611357209770363000",
3+
"SchemaVersion": 1,
4+
"Module": "service/applicationdiscoveryservice",
5+
"Type": "bugfix",
6+
"Description": "fix serialize input",
7+
"MinVersion": "",
8+
"AffectedModules": null
9+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"ID": "service.appstream-bugfix-1611357209799313000",
3+
"SchemaVersion": 1,
4+
"Module": "service/appstream",
5+
"Type": "bugfix",
6+
"Description": "fix serialize input",
7+
"MinVersion": "",
8+
"AffectedModules": null
9+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"ID": "service.cloudhsm-bugfix-1611357209833690000",
3+
"SchemaVersion": 1,
4+
"Module": "service/cloudhsm",
5+
"Type": "bugfix",
6+
"Description": "fix serialize input",
7+
"MinVersion": "",
8+
"AffectedModules": null
9+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"ID": "service.codebuild-bugfix-1611357209867885000",
3+
"SchemaVersion": 1,
4+
"Module": "service/codebuild",
5+
"Type": "bugfix",
6+
"Description": "fix serialize input",
7+
"MinVersion": "",
8+
"AffectedModules": null
9+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"ID": "service.computeoptimizer-bugfix-1611357209896608000",
3+
"SchemaVersion": 1,
4+
"Module": "service/computeoptimizer",
5+
"Type": "bugfix",
6+
"Description": "fix serialize input",
7+
"MinVersion": "",
8+
"AffectedModules": null
9+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"ID": "service.configservice-bugfix-1611613942022981000",
3+
"SchemaVersion": 1,
4+
"Module": "service/configservice",
5+
"Type": "bugfix",
6+
"Description": "fix serialization bug",
7+
"MinVersion": "",
8+
"AffectedModules": null
9+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"ID": "service.databasemigrationservice-bugfix-1611357209925386000",
3+
"SchemaVersion": 1,
4+
"Module": "service/databasemigrationservice",
5+
"Type": "bugfix",
6+
"Description": "fix serialize input",
7+
"MinVersion": "",
8+
"AffectedModules": null
9+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"ID": "service.devicefarm-bugfix-1611357209954528000",
3+
"SchemaVersion": 1,
4+
"Module": "service/devicefarm",
5+
"Type": "bugfix",
6+
"Description": "fix serialize input",
7+
"MinVersion": "",
8+
"AffectedModules": null
9+
}

0 commit comments

Comments
 (0)