Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions smithy-aws-protocol-tests/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,5 @@ smithy {
format.set(false)
smithyBuildConfigs.set(project.files())
}

sourceSets.main.java.srcDirs = ['model', 'src/main/smithy']
Original file line number Diff line number Diff line change
Expand Up @@ -424,11 +424,15 @@ operation NullAndEmptyHeadersClient {
apply NullAndEmptyHeadersClient @httpRequestTests([
{
id: "RestJsonNullAndEmptyHeaders",
documentation: "Do not send null values, empty strings, or empty lists over the wire in headers",
documentation: "Do not send null values, but do send empty strings and empty lists over the wire in headers",
protocol: restJson1,
method: "GET",
uri: "/NullAndEmptyHeadersClient",
forbidHeaders: ["X-A", "X-B", "X-C"],
forbidHeaders: ["X-A"],
headers: {
"X-B": ""
"X-C": ""
}
body: "",
params: {
a: null,
Expand Down
8 changes: 6 additions & 2 deletions smithy-aws-protocol-tests/model/restXml/http-headers.smithy
Original file line number Diff line number Diff line change
Expand Up @@ -367,11 +367,15 @@ operation NullAndEmptyHeadersClient {
apply NullAndEmptyHeadersClient @httpRequestTests([
{
id: "NullAndEmptyHeaders",
documentation: "Do not send null values, empty strings, or empty lists over the wire in headers",
documentation: "Do not send null values, but do send empty strings and empty lists over the wire in headers",
protocol: restXml,
method: "GET",
uri: "/NullAndEmptyHeadersClient",
forbidHeaders: ["X-A", "X-B", "X-C"],
forbidHeaders: ["X-A"],
headers: {
"X-B": ""
"X-C": ""
}
body: "",
params: {
a: null,
Expand Down
Loading