Zaid-Ajaj / Hawaii

dotnet CLI tool to generate type-safe F# and Fable clients from OpenAPI/Swagger or OData services
MIT License
136 stars 15 forks source link

Use Templatus for F# code generation #41

Closed xperiandri closed 6 days ago

xperiandri commented 1 year ago

https://github.com/kerams/Templatus

abelbraaksma commented 1 year ago

It looks like Templatus is not under active development atm. Maybe we can revive that, or ask @kerams, who maintains that repo.

kerams commented 1 year ago

Yeah, it was mostly just a toy and is not .NET Core compatible at its current state. Shouldn't be too hard to migrate and convert it to a proper dotnet tool, but I doubt there is interest as better options are available (depending on what you want to generate here - I am not familiar with Hawaii).

xperiandri commented 1 year ago

I just thought about moving from hard-coded F# generation to some more manageable and maintainable

abelbraaksma commented 1 year ago

Perhaps Myriad? I vaguely remember other code generators, not sure if they can easily be plugged in though. It's probably gonna be quite a massive change.

lamg commented 1 week ago

Maybe this is a good option https://github.com/edgarfgp/Fabulous.AST

Zaid-Ajaj commented 6 days ago

What is the purpose of changing the codegen AST, is there anything we want to express but can't due to a limitation? I don't believe so. If there is, consider opening an issue for it.