generators/haskell-http-client


id: generator-opts-client-haskell-http-client title: Config Options for haskell-http-clientsidebar_label: haskell-http-client


OptionDescriptionValuesDefault
sortParamsByRequiredFlagSort method arguments to place required parameters before optional parameters.true
ensureUniqueParamsWhether to ensure parameter names are unique in an operation (rename parameters that are not).true
allowUnicodeIdentifiersboolean, toggles whether unicode identifiers are allowed in names or not, default is falsefalse
prependFormOrBodyParametersAdd form or body parameters to the beginning of the parameter list.false
cabalPackageSet the cabal package name, which consists of one or more alphanumeric words separated by hyphensnull
cabalVersionSet the cabal version number, consisting of a sequence of one or more integers separated by dotsnull
baseModuleSet the base module namespacenull
requestTypeSet the name of the type used to generate requestsnull
configTypeSet the name of the type used for configurationnull
allowFromJsonNullsallow JSON Null during model decoding from JSONtrue
allowToJsonNullsallow emitting JSON Null during model encoding to JSONfalse
allowNonUniqueOperationIdsallow different API modules to contain the same operationId. Each API must be imported qualifiedfalse
generateLensesGenerate Lens optics for Modelstrue
generateModelConstructorsGenerate smart constructors (only supply required fields) for modelstrue
generateEnumsGenerate specific datatypes for OpenAPI enumstrue
generateFormUrlEncodedInstancesGenerate FromForm/ToForm instances for models that are used by operations that produce or consume application/x-www-form-urlencodedtrue
inlineMimeTypesInline (hardcode) the content-type and accept parameters on operations, when there is only 1 optiontrue
modelDerivingAdditional classes to include in the deriving() clause of Modelsnull
strictFieldsAdd strictness annotations to all model fieldstrue
useKatipSets the default value for the UseKatip cabal flag. If true, the katip package provides logging instead of monad-loggertrue
dateTimeFormatformat string used to parse/render a datetimenull
dateTimeParseFormatoverrides the format string used to parse a datetimenull
dateFormatformat string used to parse/render a date%Y-%m-%d
customTestInstanceModuletest module used to provide typeclass instances for types not known by the generatornull
hideGenerationTimestampHides the generation timestamp when files are generated.true