Skip to content

For query protocols ignore the body if the output schema has the unit type trait#1173

Merged
sugmanue merged 1 commit intosmithy-lang:mainfrom
sugmanue:sugmanue/fix-query-handling-for-unit-output
May 8, 2026
Merged

For query protocols ignore the body if the output schema has the unit type trait#1173
sugmanue merged 1 commit intosmithy-lang:mainfrom
sugmanue:sugmanue/fix-query-handling-for-unit-output

Conversation

@sugmanue
Copy link
Copy Markdown
Contributor

@sugmanue sugmanue commented May 8, 2026

Description of changes:

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

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

… type trait

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
```
@sugmanue sugmanue enabled auto-merge (squash) May 8, 2026 02:37
@sugmanue sugmanue merged commit 817022f into smithy-lang:main May 8, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants