Skip to content

Conversation

a-hilaly
Copy link
Member

Issue N/A

Description of changes:
This patch fixes a bug where ack-generate used to prepend a []
prefix to any map of structs (example Route_SDK.RequestParameters
in apigatewayv2)

Also in the same PR, moving the GoType cleanup logic to a separate
function model.getShapeCleanGoType to simplify model.GetTypeDefs
code.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

This patch fixes a bug where `ack-generate` used to  prepend a `[]`
prefix to any map of structs (example `Route_SDK.RequestParameters`
in apigatewayv2)

Also moves the GoType cleanup logic to a separate function
`model.getShapeCleanGoType` to simplify `model.GetTypeDefs` code.
Copy link
Collaborator

@jaypipes jaypipes left a comment

Choose a reason for hiding this comment

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

Very nice. And good spot on that bug in maps.

@jaypipes
Copy link
Collaborator

/lgtm

@ack-bot ack-bot added the lgtm Indicates that a PR is ready to be merged. label Jul 15, 2021
@ack-bot
Copy link
Collaborator

ack-bot commented Jul 15, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: A-Hilaly, jaypipes

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ack-bot ack-bot merged commit 7832e9a into aws-controllers-k8s:main Jul 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants