-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add compliance test for sparse query parameters
- Loading branch information
1 parent
8eb295c
commit 115e47a
Showing
3 changed files
with
52 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
modules/protocol-tests/resources/META-INF/smithy/SparseQueryParameter.smithy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
$version: "2.0" | ||
|
||
namespace alloy.test | ||
|
||
use alloy#simpleRestJson | ||
use smithy.test#httpRequestTests | ||
use smithy.test#httpResponseTests | ||
|
||
apply SparseQueryParam @httpRequestTests([ | ||
{ | ||
id: "SparseQueryParam" | ||
protocol: simpleRestJson | ||
method: "GET" | ||
uri: "/sparse-query-param" | ||
params: { | ||
foo: ["bar", null, "baz"] | ||
} | ||
queryParams: [ | ||
"foo=bar", | ||
"foo", | ||
"foo=baz" | ||
] | ||
|
||
} | ||
]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters