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(import): cannot import props that have non-standard capitalization #43

Merged
merged 2 commits into from
Jul 28, 2021

Conversation

eladb
Copy link
Contributor

@eladb eladb commented Jul 21, 2021

json2jsii now emits toJson() functions for all generated
structs which can be used to convert data back to the original
schema.

This means that we can now import APIs and CRDs even if their
property names are not properly camel cased, use underscores
or hyphens, etc.

Improve test harness to also take a snapshot of the generated typescript
output

json2jsii now emits `toJson()` functions for all generated
structs which can be used to convert data back to the original
schema.

This means that we can now import APIs and CRDs even if their
property names are not properly camel cased, use underscores
or hyphens, etc.

Improve test harness to also take a snapshot of the generated typescript
output
@eladb eladb requested a review from iliapolo July 21, 2021 12:26

expect(manifest).toMatchSnapshot();
const languages = [Language.TYPESCRIPT];
Copy link
Contributor Author

Choose a reason for hiding this comment

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

For now, just typescript - otherwise it takes forever and forever

@mergify mergify bot merged commit 5e2b300 into main Jul 28, 2021
@mergify mergify bot deleted the benisrae/tojson branch July 28, 2021 18:59
@Chriscbr
Copy link
Contributor

Build error was just a transient dependency issue (I noticed the exact same build error preventing a upgrade-deps PR from being merged yesterday).

@eladb
Copy link
Contributor Author

eladb commented Jul 29, 2021

Build error was just a transient dependency issue (I noticed the exact same build error preventing a upgrade-deps PR from being merged yesterday).

Thanks for following up.

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

3 participants