-
Notifications
You must be signed in to change notification settings - Fork 30
feat: generate default generic client implementations #1468
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
base: main
Are you sure you want to change the base?
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| { | ||
| "id": "ece99a81-4736-43df-a20e-9a367e36370b", | ||
| "type": "feature", | ||
| "description": "Start generating default implementations for generic clients" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,2 @@ | ||
| software.amazon.smithy.kotlin.codegen.aws.SdkProtocolGeneratorSupplier | ||
| software.amazon.smithy.kotlin.codegen.aws.customization.RegionSupport | ||
| software.amazon.smithy.kotlin.codegen.aws.middleware.ClockSkew |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,18 +2,18 @@ | |
| * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
| * SPDX-License-Identifier: Apache-2.0 | ||
| */ | ||
| package software.amazon.smithy.kotlin.codegen.aws.protocols.core | ||
| package software.amazon.smithy.kotlin.codegen.protocols.core | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why did this and other packages change?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Because we refactored the protocols core and others from
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you clarify why we need to move the AWS protocols from
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The problem becomes circular dependencies between the two modules. The "default generic client" integration needs to be in
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we should find a way to work around the circular dependency without relocating our AWS protocols. It was a design decision to keep them separate, if we no longer think that's the right choice, then we should have a discussion offline about moving them |
||
|
|
||
| import software.amazon.smithy.aws.traits.protocols.AwsQueryCompatibleTrait | ||
| import software.amazon.smithy.codegen.core.Symbol | ||
| import software.amazon.smithy.kotlin.codegen.aws.protocols.eventstream.EventStreamParserGenerator | ||
| import software.amazon.smithy.kotlin.codegen.aws.protocols.eventstream.EventStreamSerializerGenerator | ||
| import software.amazon.smithy.kotlin.codegen.core.* | ||
| import software.amazon.smithy.kotlin.codegen.integration.SectionId | ||
| import software.amazon.smithy.kotlin.codegen.integration.SectionKey | ||
| import software.amazon.smithy.kotlin.codegen.lang.KotlinTypes | ||
| import software.amazon.smithy.kotlin.codegen.model.buildSymbol | ||
| import software.amazon.smithy.kotlin.codegen.model.hasTrait | ||
| import software.amazon.smithy.kotlin.codegen.protocols.eventstream.EventStreamParserGenerator | ||
| import software.amazon.smithy.kotlin.codegen.protocols.eventstream.EventStreamSerializerGenerator | ||
| import software.amazon.smithy.kotlin.codegen.rendering.ExceptionBaseClassGenerator | ||
| import software.amazon.smithy.kotlin.codegen.rendering.protocol.* | ||
| import software.amazon.smithy.model.shapes.OperationShape | ||
|
|
||
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.
Correctness: Unit test classes should be in the same
packageand module as the units they test.