-
Notifications
You must be signed in to change notification settings - Fork 55
fix(codegen): render default endpoint resolver for machinelearning #424
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
Conversation
|
A new generated diff is ready to view: __generated-main...__generated-fix-machine-learning |
kggilmer
left a comment
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.
Can you briefly mention testing steps here as I believe we don't have test coverage for this?
| super | ||
| .customizeMiddleware(ctx, resolved) | ||
| .replace(endpointResolverMiddleware) { it is ResolveAwsEndpointMiddleware } | ||
| ): List<ProtocolMiddleware> = resolved + endpointResolverMiddleware |
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.
question
the custom resolver runs after the default
is enforced here by the fact that endpointResolverMiddleware is the last term 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.
Yes, the endpoint resolver is there by default so this will always run after. The functionality is covered by a protocol test
I generated the machine learning client and noticed not endpoint resolver was registered in any of the operations except |
|
Kudos, SonarCloud Quality Gate passed!
|
|
A new generated diff is ready to view: __generated-main...__generated-fix-machine-learning |








Issue #
fix #423
Description of changes
Ensure a default endpoint resolver is still registered for machine learning. The custom resolver for predict now runs after the default resolver to override the endpoint. We don't currently have a way to replace/override middleware per/operation in codegen.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.