-
Notifications
You must be signed in to change notification settings - Fork 215
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add breakingChanges for httpChecksum trait (#2398)
- Loading branch information
Showing
13 changed files
with
390 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
41 changes: 41 additions & 0 deletions
41
.../src/test/resources/software/amazon/smithy/aws/traits/diffs/httpChecksum-request.a.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,41 @@ | ||
$version: "2.0" | ||
|
||
namespace ns.foo | ||
|
||
use aws.protocols#httpChecksum | ||
|
||
service Service { | ||
operations: [ | ||
PutSomething | ||
] | ||
} | ||
|
||
@httpChecksum( | ||
requestChecksumRequired: true, | ||
requestAlgorithmMember: "checksumAlgorithm" | ||
) | ||
operation PutSomething { | ||
input: PutSomethingInput | ||
} | ||
|
||
structure PutSomethingInput { | ||
@httpHeader("x-amz-request-algorithm") | ||
checksumAlgorithm: ChecksumAlgorithm | ||
|
||
@httpHeader("x-amz-response-validation-mode") | ||
validationMode: ValidationMode | ||
|
||
@httpPayload | ||
content: Blob | ||
} | ||
|
||
enum ChecksumAlgorithm { | ||
CRC32C | ||
CRC32 | ||
SHA1 | ||
SHA256 | ||
} | ||
|
||
enum ValidationMode { | ||
ENABLED | ||
} |
40 changes: 40 additions & 0 deletions
40
.../src/test/resources/software/amazon/smithy/aws/traits/diffs/httpChecksum-request.b.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,40 @@ | ||
$version: "2.0" | ||
|
||
namespace ns.foo | ||
|
||
use aws.protocols#httpChecksum | ||
|
||
service Service { | ||
operations: [ | ||
PutSomething | ||
] | ||
} | ||
|
||
@httpChecksum( | ||
requestChecksumRequired: true | ||
) | ||
operation PutSomething { | ||
input: PutSomethingInput | ||
} | ||
|
||
structure PutSomethingInput { | ||
@httpHeader("x-amz-request-algorithm") | ||
checksumAlgorithm: ChecksumAlgorithm | ||
|
||
@httpHeader("x-amz-response-validation-mode") | ||
validationMode: ValidationMode | ||
|
||
@httpPayload | ||
content: Blob | ||
} | ||
|
||
enum ChecksumAlgorithm { | ||
CRC32C | ||
CRC32 | ||
SHA1 | ||
SHA256 | ||
} | ||
|
||
enum ValidationMode { | ||
ENABLED | ||
} |
1 change: 1 addition & 0 deletions
1
...ts/src/test/resources/software/amazon/smithy/aws/traits/diffs/httpChecksum-request.events
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 @@ | ||
[DANGER] ns.foo#PutSomething: Removed trait contents from `aws.protocols#httpChecksum` at path `/requestAlgorithmMember`. Removed value: `checksumAlgorithm`; `requestAlgorithmMember` was removed, so newly generated clients will no longer be able to pick the request checksum algorithms The service MUST continue to support old clients by supporting `requestAlgorithmMember`. | TraitBreakingChange.Remove |
41 changes: 41 additions & 0 deletions
41
...esources/software/amazon/smithy/aws/traits/diffs/httpChecksum-response-algorithm.a.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,41 @@ | ||
$version: "2.0" | ||
|
||
namespace ns.foo | ||
|
||
use aws.protocols#httpChecksum | ||
|
||
service Service { | ||
operations: [ | ||
PutSomething | ||
] | ||
} | ||
|
||
@httpChecksum( | ||
requestValidationModeMember: "validationMode", | ||
responseAlgorithms: ["CRC32C", "CRC32", "SHA1", "SHA256"] | ||
) | ||
operation PutSomething { | ||
input: PutSomethingInput | ||
} | ||
|
||
structure PutSomethingInput { | ||
@httpHeader("x-amz-request-algorithm") | ||
checksumAlgorithm: ChecksumAlgorithm | ||
|
||
@httpHeader("x-amz-response-validation-mode") | ||
validationMode: ValidationMode | ||
|
||
@httpPayload | ||
content: Blob | ||
} | ||
|
||
enum ChecksumAlgorithm { | ||
CRC32C | ||
CRC32 | ||
SHA1 | ||
SHA256 | ||
} | ||
|
||
enum ValidationMode { | ||
ENABLED | ||
} |
41 changes: 41 additions & 0 deletions
41
...esources/software/amazon/smithy/aws/traits/diffs/httpChecksum-response-algorithm.b.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,41 @@ | ||
$version: "2.0" | ||
|
||
namespace ns.foo | ||
|
||
use aws.protocols#httpChecksum | ||
|
||
service Service { | ||
operations: [ | ||
PutSomething | ||
] | ||
} | ||
|
||
@httpChecksum( | ||
requestValidationModeMember: "validationMode", | ||
responseAlgorithms: ["CRC32C", "CRC32", "SHA1"] | ||
) | ||
operation PutSomething { | ||
input: PutSomethingInput | ||
} | ||
|
||
structure PutSomethingInput { | ||
@httpHeader("x-amz-request-algorithm") | ||
checksumAlgorithm: ChecksumAlgorithm | ||
|
||
@httpHeader("x-amz-response-validation-mode") | ||
validationMode: ValidationMode | ||
|
||
@httpPayload | ||
content: Blob | ||
} | ||
|
||
enum ChecksumAlgorithm { | ||
CRC32C | ||
CRC32 | ||
SHA1 | ||
SHA256 | ||
} | ||
|
||
enum ValidationMode { | ||
ENABLED | ||
} |
1 change: 1 addition & 0 deletions
1
.../resources/software/amazon/smithy/aws/traits/diffs/httpChecksum-response-algorithm.events
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 @@ | ||
[DANGER] ns.foo#PutSomething: Removed trait contents from `aws.protocols#httpChecksum` at path `/responseAlgorithms/3`. Removed value: `SHA256`; Members of `responseAlgorithms` were removed, so newly generated clients will no longer validate response checksums for the removed algorithms. The service MUST continue to support old clients by supporting removed compression algorithms. | TraitBreakingChange.Remove |
43 changes: 43 additions & 0 deletions
43
...src/test/resources/software/amazon/smithy/aws/traits/diffs/httpChecksum-response.a.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,43 @@ | ||
$version: "2.0" | ||
|
||
namespace ns.foo | ||
|
||
use aws.protocols#httpChecksum | ||
|
||
service Service { | ||
operations: [ | ||
PutSomething | ||
] | ||
} | ||
|
||
@httpChecksum( | ||
requestChecksumRequired: true, | ||
requestAlgorithmMember: "checksumAlgorithm", | ||
requestValidationModeMember: "validationMode", | ||
responseAlgorithms: ["CRC32C", "CRC32", "SHA1", "SHA256"] | ||
) | ||
operation PutSomething { | ||
input: PutSomethingInput | ||
} | ||
|
||
structure PutSomethingInput { | ||
@httpHeader("x-amz-request-algorithm") | ||
checksumAlgorithm: ChecksumAlgorithm | ||
|
||
@httpHeader("x-amz-response-validation-mode") | ||
validationMode: ValidationMode | ||
|
||
@httpPayload | ||
content: Blob | ||
} | ||
|
||
enum ChecksumAlgorithm { | ||
CRC32C | ||
CRC32 | ||
SHA1 | ||
SHA256 | ||
} | ||
|
||
enum ValidationMode { | ||
ENABLED | ||
} |
41 changes: 41 additions & 0 deletions
41
...src/test/resources/software/amazon/smithy/aws/traits/diffs/httpChecksum-response.b.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,41 @@ | ||
$version: "2.0" | ||
|
||
namespace ns.foo | ||
|
||
use aws.protocols#httpChecksum | ||
|
||
service Service { | ||
operations: [ | ||
PutSomething | ||
] | ||
} | ||
|
||
@httpChecksum( | ||
requestChecksumRequired: true, | ||
requestAlgorithmMember: "checksumAlgorithm" | ||
) | ||
operation PutSomething { | ||
input: PutSomethingInput | ||
} | ||
|
||
structure PutSomethingInput { | ||
@httpHeader("x-amz-request-algorithm") | ||
checksumAlgorithm: ChecksumAlgorithm | ||
|
||
@httpHeader("x-amz-response-validation-mode") | ||
validationMode: ValidationMode | ||
|
||
@httpPayload | ||
content: Blob | ||
} | ||
|
||
enum ChecksumAlgorithm { | ||
CRC32C | ||
CRC32 | ||
SHA1 | ||
SHA256 | ||
} | ||
|
||
enum ValidationMode { | ||
ENABLED | ||
} |
9 changes: 9 additions & 0 deletions
9
...s/src/test/resources/software/amazon/smithy/aws/traits/diffs/httpChecksum-response.events
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,9 @@ | ||
[DANGER] ns.foo#PutSomething: Removed trait contents from `aws.protocols#httpChecksum` at path `/requestValidationModeMember`. Removed value: `validationMode`; `requestValidationModeMember` was removed, so newly generated clients will no longer validate response checksums. The service MUST continue to support old clients by supporting `requestValidationModeMember`. | TraitBreakingChange.Remove | ||
----- | ||
[DANGER] ns.foo#PutSomething: Removed trait contents from `aws.protocols#httpChecksum` at path `/responseAlgorithms/0`. Removed value: `CRC32C`; Members of `responseAlgorithms` were removed, so newly generated clients will no longer validate response checksums for the removed algorithms. The service MUST continue to support old clients by supporting removed compression algorithms. | TraitBreakingChange.Remove | ||
----- | ||
[DANGER] ns.foo#PutSomething: Removed trait contents from `aws.protocols#httpChecksum` at path `/responseAlgorithms/1`. Removed value: `CRC32`; Members of `responseAlgorithms` were removed, so newly generated clients will no longer validate response checksums for the removed algorithms. The service MUST continue to support old clients by supporting removed compression algorithms. | TraitBreakingChange.Remove | ||
----- | ||
[DANGER] ns.foo#PutSomething: Removed trait contents from `aws.protocols#httpChecksum` at path `/responseAlgorithms/2`. Removed value: `SHA1`; Members of `responseAlgorithms` were removed, so newly generated clients will no longer validate response checksums for the removed algorithms. The service MUST continue to support old clients by supporting removed compression algorithms. | TraitBreakingChange.Remove | ||
----- | ||
[DANGER] ns.foo#PutSomething: Removed trait contents from `aws.protocols#httpChecksum` at path `/responseAlgorithms/3`. Removed value: `SHA256`; Members of `responseAlgorithms` were removed, so newly generated clients will no longer validate response checksums for the removed algorithms. The service MUST continue to support old clients by supporting removed compression algorithms. | TraitBreakingChange.Remove |
43 changes: 43 additions & 0 deletions
43
...s-traits/src/test/resources/software/amazon/smithy/aws/traits/diffs/httpChecksum.a.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,43 @@ | ||
$version: "2.0" | ||
|
||
namespace ns.foo | ||
|
||
use aws.protocols#httpChecksum | ||
|
||
service Service { | ||
operations: [ | ||
PutSomething | ||
] | ||
} | ||
|
||
@httpChecksum( | ||
requestChecksumRequired: true, | ||
requestAlgorithmMember: "checksumAlgorithm", | ||
requestValidationModeMember: "validationMode", | ||
responseAlgorithms: ["CRC32C", "CRC32", "SHA1", "SHA256"] | ||
) | ||
operation PutSomething { | ||
input: PutSomethingInput | ||
} | ||
|
||
structure PutSomethingInput { | ||
@httpHeader("x-amz-request-algorithm") | ||
checksumAlgorithm: ChecksumAlgorithm | ||
|
||
@httpHeader("x-amz-response-validation-mode") | ||
validationMode: ValidationMode | ||
|
||
@httpPayload | ||
content: Blob | ||
} | ||
|
||
enum ChecksumAlgorithm { | ||
CRC32C | ||
CRC32 | ||
SHA1 | ||
SHA256 | ||
} | ||
|
||
enum ValidationMode { | ||
ENABLED | ||
} |
35 changes: 35 additions & 0 deletions
35
...s-traits/src/test/resources/software/amazon/smithy/aws/traits/diffs/httpChecksum.b.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,35 @@ | ||
$version: "2.0" | ||
|
||
namespace ns.foo | ||
|
||
service Service { | ||
operations: [ | ||
PutSomething | ||
] | ||
} | ||
|
||
operation PutSomething { | ||
input: PutSomethingInput | ||
} | ||
|
||
structure PutSomethingInput { | ||
@httpHeader("x-amz-request-algorithm") | ||
checksumAlgorithm: ChecksumAlgorithm | ||
|
||
@httpHeader("x-amz-response-validation-mode") | ||
validationMode: ValidationMode | ||
|
||
@httpPayload | ||
content: Blob | ||
} | ||
|
||
enum ChecksumAlgorithm { | ||
CRC32C | ||
CRC32 | ||
SHA1 | ||
SHA256 | ||
} | ||
|
||
enum ValidationMode { | ||
ENABLED | ||
} |
Oops, something went wrong.