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 Puppet Schema from TypeScript Automatically #26

Open
huan opened this issue Apr 13, 2020 · 1 comment
Open

Generate Puppet Schema from TypeScript Automatically #26

huan opened this issue Apr 13, 2020 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@huan
Copy link
Member

huan commented Apr 13, 2020

As mentioned by @suntong from #11 (comment):

"Convert TypeScript types to GO" right? -- https://app.quicktype.io/#l=Go
Meaning that we should make TypeScript type definitions as individual files, separate their implementations from them. So whenever the types get changed, the Go/Java/Python type definition files can be changed semi-automatically as well.

I believe it will be great if we can have a good design to use the automatic generation from this tool because the wechaty-puppet will be changed in the future frequently, and it will be great if we can be prepared and leave all the work to the machine.

Link to Python: wechaty/python-wechaty#10

@huan
Copy link
Member Author

huan commented Apr 30, 2020

Update: we can import all the wechaty-puppet schemas from the go-grpc.

Python Wechaty team are using this strategy, and I'd like to suggest our Go team to try it if the Python team proved it works well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant