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

Migrate to smithy 1.7 and generate APIGateway service #1240

Merged
merged 11 commits into from
May 5, 2021

Conversation

skotambkar
Copy link
Contributor

@skotambkar skotambkar commented Apr 23, 2021

Depends on aws/smithy-go#289

  • Generates latest APIGateway model

  • Updates codegen to use rename pattern i.e. shapeId.getName(service) when retrieving shape name

TODO:

[ x ] generate and validate protocol tests

@skotambkar skotambkar requested review from jasdel and skmcgrail and removed request for jasdel April 27, 2021 19:54
@skotambkar skotambkar changed the title Generate APIGateway model with support for httpQueryParams location Migrate to smithy 1.7 and generate APIGateway service May 5, 2021
@@ -71,7 +71,9 @@ smithy-go-publish-local:

gen-config-asserts:
@echo "Generating SDK config package implementor assertions"
cd config && go generate
cd config \
&& go mod tidy \
Copy link
Contributor

Choose a reason for hiding this comment

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

does mod tidy need to be mixed into these tasks? mod tidy has a separate task that will be run by make generate.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We have to run go mod tidy, when we cd into Config. Or we get an error related to go sum entry not found.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah i see, could also set GOFLAGS=-mod=mod here as well potentially instead of running mod tidy.

service/apigateway/serializers.go Show resolved Hide resolved
@skotambkar skotambkar merged commit 92076b9 into aws:main May 5, 2021
jrichard8 pushed a commit to jrichard8/aws-sdk-go-v2 that referenced this pull request Feb 14, 2022
* update codegen to use updated smithy provider constructor

* add apigateway model

* generate apigateway client

* update codegen to use renamed shape names.

* generate new protocol test

* regenerate apigateway service

* update to depend on new smithy go hash

* update codegen to use renamed shape name in case of conflict

* add go mod tidy step in gen-config-asserts

* update go mod,go sum for protocol tests and apigateway service

* minor comment
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.

None yet

2 participants