Smithy is a protocol-agnostic interface definition language and set of tools for generating clients, servers, and documentation for any programming language.
Revert EC2 Query Protocol empty list serialization.
Empty lists are NOT serialized for the EC2 query protocol, which differs from the AWS query protocol.
See "EmptyQueryLists" for the AWS query protocol equivalent test case.
This is needed since SDKs that conform to the broken protocol tests will send invalid requests to EC2.
Testing
Tested with aws-sdk-js-v3 locally (smithy-typescript, aws-sdk-js-v3) sending a previously failing command with the error InvalidRequest: The request received was invalid. now with the correct validation error.
Filter=&KeyPairId.1=key-KEYISNOTREALATALL&Action=DescribeKeyPairs&Version=2016-11-15
InvalidRequest: The request received was invalid.
After:
KeyPairId.1=key-KEYISNOTREALATALL&Action=DescribeKeyPairs&Version=2016-11-15
InvalidParameterValue: Invalid value 'key-KEYISNOTREALATALL' for keyPairId.
Overview
Revert EC2 Query Protocol empty list serialization.
Empty lists are NOT serialized for the EC2 query protocol, which differs from the AWS query protocol. See "EmptyQueryLists" for the AWS query protocol equivalent test case.
This is needed since SDKs that conform to the broken protocol tests will send invalid requests to EC2.
Testing
Tested with aws-sdk-js-v3 locally (smithy-typescript, aws-sdk-js-v3) sending a previously failing command with the error
InvalidRequest: The request received was invalid.
now with the correct validation error.Before:
After:
The
Filter=
empty list serialization is removed.Links
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.