Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No-ops instead of encoding empty string when encoding an empty body in xml #481

Merged
merged 3 commits into from
Nov 16, 2022

Conversation

epau
Copy link
Contributor

@epau epau commented Nov 16, 2022

Issue #

awslabs/aws-sdk-swift#580

Description of changes

This PR removes the logic that encodes an empty string for an empty body in xml.
Encoding an empty string, results in a "invalid list" error in CRT. (unknown if that is expected or not)

Regardless, doing nothing (or encoding nil) is preferable and more accurate as the expected payload should be empty.

Scope

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@epau epau force-pushed the epau/fix/xml-encoding-bandaid-2 branch from f5eb55b to 5f6596f Compare November 16, 2022 17:59
@epau epau requested a review from jbelkins November 16, 2022 18:44
@epau epau merged commit 749c379 into main Nov 16, 2022
@epau epau deleted the epau/fix/xml-encoding-bandaid-2 branch November 16, 2022 18:50
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