Commit 817022f
authored
For query protocols ignore the body if the output schema has the unit type trait (#1173)
Some services such as Neptune's AddTagsToResourceResponse operation
that targets `smithy.api#Unit` for its output still returns the
`ResponseMetadata` in the payload. This change ignores the response
when the operation output targes Unit. See example of output below.
```
<AddTagsToResourceResponse xmlns="http://rds.amazonaws.com/doc/2014-10-31/">
<ResponseMetadata>
<RequestId>abc-123</RequestId>
</ResponseMetadata>
</AddTagsToResourceResponse
```1 parent ecd86e3 commit 817022f
1 file changed
Lines changed: 1 addition & 1 deletion
File tree
- aws/client/aws-client-awsquery/src/main/java/software/amazon/smithy/java/aws/client/awsquery
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
| 105 | + | |
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| |||
0 commit comments