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

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

Add option to allow the generation of specific operations #32

Closed joel-bach closed 4 years ago

joel-bach commented 4 years ago

This change adds the option to only generate the code for some operation.

@NorfairKing You can test the integration with this branch with something like the following:

stack run -- .circleci/specifications/stripe-api.yml --force --property-type-suffix="'" --module-name "StripeAPI" --convert-to-camel-case --omit-additional-operation-functions --package-name "stripeapi" --operation-to-generate=GetEvents

Note that the Stripe specification contains the Error type which has indirect references to 2/3 of all available models which leads to many models generated even if only one operation is generated (as this type is used in every operation).