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

this is awesome, just wish it was written in go and not php #36

Open
joeblew99 opened this issue Nov 6, 2021 · 1 comment
Open

this is awesome, just wish it was written in go and not php #36

joeblew99 opened this issue Nov 6, 2021 · 1 comment

Comments

@joeblew99
Copy link

Just discovered this and the asyncapi repos.

the only thing missing was a generator and i find this. But its php.

i guess its an easy lang to write a templating project in, but i so wish it was done in golang.

@vearutop
Copy link
Member

vearutop commented Nov 6, 2021

Hehe, I wish this was written in Go too. It is done in PHP mostly for historical reasons, and now it is too much effort with too little practical benefit to reimplement the tool in Go. Main complexity of this tool is in the libs that load and resolve JSON schemas and then map them to Go structure definitions.

When I started tinkering with JSON Schema and Swagger/OpenAPI a few years ago I wasn't proficient enough in Go.

If I have started now, I would use Go even though there is a bit of burden to work with dynamic and flexible structures in a type-safe language (comparing to PHP/Javascript/Python).

Hopefully docker image can help to feel less PHP standing in the way. :)

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

No branches or pull requests

2 participants