Skip to content

Conversation

@adwsingh
Copy link
Contributor

@adwsingh adwsingh commented Feb 4, 2026

Issue #, if available:

Description of changes:

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

writePercentEncoded(0x80 | (c & 0x3F));
} else if (Character.isHighSurrogate(c) && i + 1 < len) {
char low = s.charAt(++i);
if (Character.isLowSurrogate(low)) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happens when it's not a low surrogate?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch!

import java.nio.ByteBuffer;
import java.util.Arrays;

final class FormUrlEncodedSink {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this application/x-www-form-urlencoded or RFC 3986 encoding? Should document.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The later, added comments.


<T extends SerializableStruct> T deserialize(ShapeBuilder<T> builder) {
try (var codec = XmlCodec.builder()
.wrapperElements(List.of(operationName + "Response", operationName + "Result"))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can xmlName or whatever the trait is, change the wrapper names?

import software.amazon.smithy.java.xml.XmlUtil;
import software.amazon.smithy.model.shapes.ShapeId;

public final class AwsQueryClientProtocol extends HttpClientProtocol {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We might want to be able to customize this slightly for "EC2 query". Could probably be a followup.

@adwsingh adwsingh marked this pull request as ready for review February 10, 2026 21:21
@adwsingh adwsingh requested a review from mtdowling February 10, 2026 21:22
@adwsingh adwsingh enabled auto-merge (rebase) February 10, 2026 22:29
@rhernandez35
Copy link
Contributor

approved but disabled automerge so michael can review tomorrow

this.service = Objects.requireNonNull(service, "service is required");
this.version = Objects.requireNonNull(version, "version is required");
this.errorDeserializer = HttpErrorDeserializer.builder()
.codec(XmlCodec.builder().build())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this need to be different than the codec on the instance?

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.

4 participants