File tree Expand file tree Collapse file tree
smithy-aws-protocol-tests/model Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -700,3 +700,30 @@ structure QueryParamsAsStringListMapInput {
700700 @httpQueryParams
701701 foo : StringListMap
702702}
703+
704+ /// Does not encode `[]` chars in serialized URIs.
705+ @readonly
706+ @http (uri : " /SkipsEncodingSquareBrackets" , method : " GET" )
707+ operation SkipsEncodingSquareBrackets {
708+ input := {
709+ @httpQuery (" brackets[]" )
710+ paramWithBrackets : String
711+ }
712+ }
713+
714+ apply SkipsEncodingSquareBrackets @httpRequestTests ([
715+ {
716+ id : " RestJsonSkipsEncodingSquareBrackets"
717+ documentation : " Do not encode square brackets (`[` and `]`) in the names of query parameters."
718+ protocol : restJson1
719+ method : " GET"
720+ uri : " /SkipsEncodingSquareBrackets"
721+ body : " "
722+ queryParams : [
723+ " brackets[]=Text"
724+ ]
725+ params : {
726+ paramWithBrackets : " Text"
727+ }
728+ }
729+ ])
Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ service RestJson {
5050 QueryIdempotencyTokenAutoFill ,
5151 QueryPrecedence ,
5252 QueryParamsAsStringListMap ,
53+ SkipsEncodingSquareBrackets
5354
5455 // @httpPrefixHeaders tests
5556 HttpPrefixHeaders ,
Original file line number Diff line number Diff line change @@ -586,3 +586,30 @@ structure QueryParamsAsStringListMapInput {
586586 @httpQueryParams
587587 foo : StringListMap
588588}
589+
590+ /// Does not encode `[]` chars in serialized URIs.
591+ @readonly
592+ @http (uri : " /SkipsEncodingSquareBrackets" , method : " GET" )
593+ operation SkipsEncodingSquareBrackets {
594+ input := {
595+ @httpQuery (" brackets[]" )
596+ paramWithBrackets : String
597+ }
598+ }
599+
600+ apply SkipsEncodingSquareBrackets @httpRequestTests ([
601+ {
602+ id : " RestXmlSkipsEncodingSquareBrackets"
603+ documentation : " Do not encode square brackets (`[` and `]`) in the names of query parameters."
604+ protocol : restXml
605+ method : " GET"
606+ uri : " /SkipsEncodingSquareBrackets"
607+ body : " "
608+ queryParams : [
609+ " brackets[]=Text"
610+ ]
611+ params : {
612+ paramWithBrackets : " Text"
613+ }
614+ }
615+ ])
Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ service RestXml {
4545 QueryIdempotencyTokenAutoFill ,
4646 QueryPrecedence ,
4747 QueryParamsAsStringListMap ,
48+ SkipsEncodingSquareBrackets
4849
4950 // @httpPrefixHeaders tests
5051 HttpPrefixHeaders ,
You can’t perform that action at this time.
0 commit comments