swaggest / swac

🤖 OpenAPI/Swagger client generator for PHP, Go and JavaScript (ES5)
MIT License
9 stars 3 forks source link

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

Open joeblew99 opened 2 years ago

joeblew99 commented 2 years ago

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 commented 2 years ago

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. :)