Safe Haskell | None |
---|---|
Language | Haskell2010 |
Functionality to Generate Haskell Code out of an OpenAPI definition File
Synopsis
- decodeOpenApi :: String -> IO OpenApiSpecification
- defineOperations :: String -> OpenApiSpecification -> Generator (Q [ModuleDefinition])
- defineConfigurationInformation :: String -> OpenApiSpecification -> Q Doc
- defineModels :: String -> OpenApiSpecification -> Generator (Q [ModuleDefinition])
- defineSecuritySchemes :: String -> OpenApiSpecification -> Generator (Q Doc)
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
.