lerenn / asyncapi-codegen

An AsyncAPI Golang Code generator that generates all Go code from the broker to the application/user. Just plug your application to your favorite message broker!
Apache License 2.0
89 stars 23 forks source link

Add extensions to specify custom Go types #65

Closed leejuyuu closed 1 year ago

leejuyuu commented 1 year ago

Inspired by deepmap/oapi-codegen. Add x-go-type and x-go-type-import for specifying custom Go types for generating corresponding Go code for the Schema Objects. Add tests to check the results.

Closes https://github.com/lerenn/asyncapi-codegen/issues/48.

lerenn commented 1 year ago

Hello Leejuyuu ! Sorry, I didn't see the pull request notification in my emails :cry: (for the potential next ones, I installed the Github app on my phone, should not happen again).

I'll take a depper look today at your code, it looks really great on a first look. Thank you very much!

lerenn commented 1 year ago

I took a look in your code and it is really great work! Especially the custom imports part which is really interesting and can be reused later.

I took the liberty to solve the conflict with the README and I'll merge it.

Thanks again for sharing your work :pray:

lerenn commented 1 year ago

Tagged as v0.18.0

leejuyuu commented 12 months ago

Thanks for merging! I'm glad to help.