-
Notifications
You must be signed in to change notification settings - Fork 6
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
Update relative middleware support #161
Conversation
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.
Nice! looking good, just some minor comments.
codegen/smithy-ruby-codegen-test-utils/middleware/test_middleware.rb
Outdated
Show resolved
Hide resolved
codegen/smithy-ruby-codegen-test/integration-specs/relative_middleware_spec.rb
Show resolved
Hide resolved
...-codegen/src/main/java/software/amazon/smithy/ruby/codegen/middleware/MiddlewareBuilder.java
Outdated
Show resolved
Hide resolved
codegen/projections/white_label/spec/relative_middleware_spec.rb
Outdated
Show resolved
Hide resolved
codegen/smithy-ruby-codegen-test/model/component-test/compression.smithy
Show resolved
Hide resolved
...are/amazon/smithy/ruby/codegen/middleware/factories/RequestCompressionMiddlewareFactory.java
Show resolved
Hide resolved
codegen/smithy-ruby-codegen-test-utils/middleware/test_middleware.rb
Outdated
Show resolved
Hide resolved
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.
Nice!
codegen/smithy-ruby-codegen-test/model/component-test/relative.smithy
Outdated
Show resolved
Hide resolved
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.
Nice - LGTM!
Description of changes:
Current implementation of the Relative middleware raises an error when a middleware specifies a Relative that does not exist. The behavior that we want to adjust is that if that Relative is not a required middleware, the middleware stack ordering should proceed as normal. This PR will address this modification.
In addition to the above, the following has been added/revised:
CodegenException
to cover cases when a streaming body has ahttpChecksumRequired
traitFINALIZE
step toSIGN
to match with Hearth.By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.