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

Generate SDK boilerplate code #24

Closed
2 tasks
afrittoli opened this issue Sep 27, 2022 · 2 comments
Closed
2 tasks

Generate SDK boilerplate code #24

afrittoli opened this issue Sep 27, 2022 · 2 comments

Comments

@afrittoli
Copy link
Contributor

The SDK contains today a lot of boilerplate code which is copied over and over to various events to implement all the getter and setter methods. The initial version of the code was generated through a script which is not up to date now and cannot be used to update existing code either.

The objective of this work is to have repeatable code generation, so that when events schemas change, the code may be regenerated automatically. There are two possible levels of code generation, which can be dealt with in separate issues:

  • generate the go types from the schemas
  • generate the get/set methods from the go types
@afrittoli
Copy link
Contributor Author

Consider whether this could be developed to produce code for all SDKs, not only golang

@afrittoli afrittoli self-assigned this Mar 28, 2023
@afrittoli
Copy link
Contributor Author

Addressed by #43

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

No branches or pull requests

1 participant