openapi3-code-generator-0.2.0.0: OpenAPI3 Haskell Client Code Generator
Safe HaskellSafe-Inferred
LanguageHaskell2010

OpenAPI.Generate.Main

Description

Functionality to Generate Haskell Code out of an OpenAPI definition File

Synopsis

Documentation

defineOperations :: String -> OpenApiSpecification -> Generator (Q [ModuleDefinition], Models) Source #

Defines all the operations as functions and the common imports

defineConfigurationInformation :: String -> OpenApiSpecification -> Q Doc Source #

Defines the defaultURL and the defaultConfiguration containing this URL.

defineModels :: String -> OpenApiSpecification -> Models -> Generator (Q [ModuleDefinition]) Source #

Defines all models in the components.schemas section of the OpenApiSpecification

defineSecuritySchemes :: String -> OpenApiSpecification -> Generator (Q Doc) Source #

Defines all supported security schemes from the OpenApiSpecification.