Haskell-OpenAPI-Code-Generator / Haskell-OpenAPI-Client-Code-Generator

Generate Haskell client code from an OpenAPI 3 specification
46 stars 19 forks source link

need clarification: this package versus builtin haskell generator in openapi #91

Closed haroldcarr closed 8 months ago

haroldcarr commented 8 months ago

QUESTION: How is this package different than the haskell generator built into openapi-generator-cli?

I have been using openapi-generator-cli via

nix-shell -p openapi-generator-cli

It does NOT handle sum types correctly when generating Haskell code.

I am hoping your package handles it correctly.

NorfairKing commented 8 months ago

@haroldcarr The result of this package actually compiles, unlike the built-in generator. Which is why we made this package.

I use it in prod. Do with that what you will :P

haroldcarr commented 8 months ago

Is there any plan to submit this to the openapi-generator-cli codebase? Seems like that would be a good idea.

Also, perhaps add something to the readme that states that this package is different.

NorfairKing commented 8 months ago

Is there any plan to submit this to the openapi-generator-cli codebase?

Nope

Seems like that would be a good idea.

Go ahead

Also, perhaps add something to the readme that states that this package is different.

PR Welcome