Skip to content
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

Fix API client generation issues discovered in new model builds #708

Merged
merged 7 commits into from
Sep 4, 2020

Conversation

jasdel
Copy link
Contributor

@jasdel jasdel commented Sep 3, 2020

Fixes issues with the API client codegen that were discovered in the latest set of models added to the SDK.

  • Fixes bytes package not being imported for document payload serializers.
  • Fixup IdempotencyToken resolver added in correct scope. If IdempotencyToken was used as a member, not on the top level shape it would cause the resolver to be generated, but the client option was never set.

Regenerates API models for operation input/output (de)serialization helper function names.

Copy link
Contributor

@skotambkar skotambkar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For sts client, we see a missing dependency of strconv.

Can you add that in this PR, or can be separate; doesn't have to block this pr.

github.com/aws/aws-sdk-go-v2/service/sts [github.com/aws/aws-sdk-go-v2/service/sts.test]
./deserializers.go:1598:17: undefined: strconv

@jasdel
Copy link
Contributor Author

jasdel commented Sep 3, 2020

Looks like also missed transcribe streaming,

Testing github.com/aws/aws-sdk-go-v2/service/transcribestreaming
# github.com/aws/aws-sdk-go-v2/service/transcribestreaming [github.com/aws/aws-sdk-go-v2/service/transcribestreaming.test]
./serializers.go:60:38: cannot use payload (type types.AudioStream) as type "io".Reader in argument to request.SetStream:
	types.AudioStream does not implement "io".Reader (missing Read method)
./serializers.go:121:74: undefined: smithyjson
./serializers.go:133:75: undefined: smithyjson
FAIL	github.com/aws/aws-sdk-go-v2/service/transcribestreaming [build failed]

Will also need to ignore event stream operations for now until supported.

@jasdel jasdel merged commit 15b11fe into aws:feature/SmithyAPIClient Sep 4, 2020
@jasdel jasdel deleted the fixup/APIClients branch September 4, 2020 17:12
skmcgrail pushed a commit that referenced this pull request Sep 24, 2020
Fixes issues with the API client codegen that were discovered in the latest set of models added to the SDK.

* Fixes `bytes` package not being imported for document payload serializers.
* Fixup IdempotencyToken resolver added in correct scope. If IdempotencyToken was used as a member, not on the top level shape it would cause the resolver to be generated, but the client option was never set.

Regenerates API models for operation input/output (de)serialization helper function names.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants