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(cli): unable to import types with all-caps TLAs #211

Merged
merged 6 commits into from
May 27, 2020

Conversation

eladb
Copy link
Contributor

@eladb eladb commented May 26, 2020

jsii requires that class names will not be all-caps. This means that a class name like VPC is not allowed. To address this, we convert all TLAs to pascal case (i.e. Vpc).

Add a unit test for type name normalization.

Fixes #209

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

jsii requires that class names will not be all-caps. This means that a class name like `VPC` is not allowed. To address this, we convert all TLAs to pascal case (i.e. `Vpc`).

Add a unit test for type name normalization.

Fixes #209
@eladb eladb requested a review from iliapolo May 26, 2020 20:12
iliapolo
iliapolo previously approved these changes May 27, 2020
@mergify
Copy link
Contributor

mergify bot commented May 27, 2020

Your pull request will be updated and merged automatically (do not update manually).

@iliapolo iliapolo dismissed their stale review May 27, 2020 08:35

noticed something

Copy link
Member

@iliapolo iliapolo left a comment

Choose a reason for hiding this comment

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

@eladb the code looks good, I just want some more context on the previous behavior

@eladb eladb requested a review from iliapolo May 27, 2020 10:55
@mergify
Copy link
Contributor

mergify bot commented May 27, 2020

Your pull request will be updated and merged automatically (do not update manually).

@eladb eladb merged commit a11d0e8 into master May 27, 2020
@eladb eladb deleted the benisrae/pascal-tla branch May 27, 2020 13:50
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.

python: unable to import network.aws.crossplane.io/vpc
2 participants