-
Notifications
You must be signed in to change notification settings - Fork 218
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
What is the server behavior for deserializing httpQueryParams
when multiple values appear for the same key?
#1071
Comments
There's no defined behavior. The current server implementation is, I believe, as follows:
|
Existing implementations of restJson1 have diverging behavior for query parameters with multiple values depending on whether @httpQuery or @httpQueryParams is used. This updates the docs to use SHOULD to describe the preferred, but not mandatory, behavior. Fixes smithy-lang#1071
As we don't have a way to add protocol tests for SHOULDs yet (though this made us think we, uh, should), right now all I can offer is a documentation update. |
@adamthom-amzn What mechanism did you have in mind? I was thinking that having separate test suites under |
I was thinking that we would have at least a flag for SHOULD tests, so code generators would have the option to try to make the tests run but not fail the build, if it could be managed. That way we could keep the tests grouped by functionality. |
When it targets a map of strings, what should a server implementation deserialize to when encountering multiple values for the same query key param? Should it pick the first value or the last one in the query string? The docs don't specify a behavior.
There are also no protocol tests.
The text was updated successfully, but these errors were encountered: