-
Notifications
You must be signed in to change notification settings - Fork 218
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add breakingChanges for httpChecksum trait #2398
Conversation
breakingChanges: [ | ||
{ | ||
change: "remove", | ||
severity: "ERROR", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we include a message when the entire trait is removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh I wanted to add message later after adding test, but forgot. thanks for catching.
breakingChanges: [ | ||
{ | ||
change: "remove", | ||
severity: "ERROR", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Error is the default severity for breaking changes, so we can probably remove that here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I noticed that the request compression rules use DANGER
see. These seem like they would have the same severity.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I debated it and felt removal of compression being less severe than removal of checksums was reasonable. But don't feel strongly about it, so changing to DANGER.
path: "/requestValidationModeMember", | ||
severity: "ERROR", | ||
message: """ | ||
`requestValidationModeMember` was removed so newly generated clients will no longer validate response \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
`requestValidationModeMember` was removed so newly generated clients will no longer validate response \ | |
`requestValidationModeMember` was removed, so newly generated clients will no longer validate response \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same above.
e1bf982
to
e4001f9
Compare
Background
The
aws.protocols#httpChecksum
trait was missing any rules for detecting backwards incompatible changes to the applied trait. This PR addsbreakingChanges
to the trait definition.Testing
Added tests to assert the events for diff.
Links
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.