-
Notifications
You must be signed in to change notification settings - Fork 246
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
feat(go): represent jsii structs as go structs (only) #2600
Conversation
As proposed in aws/aws-cdk-rfcs#292 (this is *Approach 4*), stop rendering go interfaces to represent jsii structs, and instead only emit a plain go struct with the flattened list of fields (own + all super interfaces). Made the necessary code changes to de-serialize structs returned by-reference by the `@jsii/kernel` by eagerly fecthing all properties. Also, implemented the option to offer convenience conversion functions to easily create a parent type from a child type.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only immediate concern is removing the duplicate deprecated
docs.
packages/jsii-pacmak/test/generated-code/__snapshots__/target-go.test.ts.snap
Show resolved
Hide resolved
a8551a3
to
5a25183
Compare
The title of this Pull Request does not conform with [Conventional Commits] guidelines. It will need to be adjusted before the PR can be merged. |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
As proposed in aws/aws-cdk-rfcs#292 (this is Approach 4), stop
rendering go interfaces to represent jsii structs, and instead only emit
a plain go struct with the flattened list of fields (own + all super
interfaces).
Made the necessary code changes to de-serialize structs returned
by-reference by the
@jsii/kernel
by eagerly fecthing all properties.Also, implemented the option to offer convenience conversion functions
to easily create a parent type from a child type.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.