Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"type": "bugfix",
"description": "Fixed awsQuery response deserialization for operations with no output members."
}
10 changes: 7 additions & 3 deletions packages/smithy-aws-core/src/smithy_aws_core/aio/protocols.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,10 +364,14 @@ def _action_name(
def _response_wrapper_elements(
self,
operation: APIOperation[SerializeableShape, DeserializeableShape],
) -> tuple[str, str]:
) -> tuple[str, ...]:
name = operation.schema.id.name
# Operations with no output members will omit the <OpResult> element.
if not operation.output_schema.members:
return (f"{name}Response",)
return (
f"{operation.schema.id.name}Response",
f"{operation.schema.id.name}Result",
f"{name}Response",
f"{name}Result",
)

def _error_wrapper_elements(self) -> tuple[str, ...]:
Expand Down
Loading