openapi3-code-generator-0.1.0.6: OpenAPI3 Haskell Client Code Generator

Safe HaskellNone
LanguageHaskell2010

OpenAPI.Generate

Description

Functionality to Generate Haskell Code out of an OpenAPI definition File

Synopsis

Documentation

decodeOpenApi :: String -> IO OpenApiSpecification Source #

Decodes an OpenAPI File

defineOperations :: String -> OpenApiSpecification -> Generator (Q [ModuleDefinition]) 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 -> 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.