From d295598663cb96cf18df748c8dadb7e6e149a840 Mon Sep 17 00:00:00 2001 From: JordonPhillips Date: Fri, 22 Oct 2021 17:16:19 +0200 Subject: [PATCH] Add server protocol test for handling static query params --- .../model/restJson1/http-query.smithy | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/smithy-aws-protocol-tests/model/restJson1/http-query.smithy b/smithy-aws-protocol-tests/model/restJson1/http-query.smithy index ef23e1a96fc..236613edd74 100644 --- a/smithy-aws-protocol-tests/model/restJson1/http-query.smithy +++ b/smithy-aws-protocol-tests/model/restJson1/http-query.smithy @@ -400,6 +400,21 @@ apply OmitsNullSerializesEmptyString @httpRequestTests([ emptyString: "", }, }, + { + id: "RestJsonServersAcceptStaticQueryParamAsEmptyString", + documentation: "Servers accept static query params as empty strings.", + protocol: restJson1, + method: "GET", + uri: "/OmitsNullSerializesEmptyString", + body: "", + queryParams: [ + "Empty", + ], + params: { + emptyString: "", + }, + appliesTo: "server" + }, ]) structure OmitsNullSerializesEmptyStringInput {