Safe Haskell | None |
---|---|
Language | Haskell2010 |
- genSwagger :: RouterSwagger r => Proxy r -> Either (Text, Context) Swagger
- class RouterSwagger r where
- type GenPathsM = ExceptT (Text, Context) (Declare (Definitions Schema))
- type Paths = InsOrdHashMap Text PathItem
- data Context = Context {}
- passPaths :: (r ~ f next, RouterSwagger next) => Proxy r -> Context -> GenPathsM Paths
- noPaths :: Proxy r -> Context -> GenPathsM Paths
Documentation
genSwagger :: RouterSwagger r => Proxy r -> Either (Text, Context) Swagger Source #
Generate a Swagger specification for a given type.
class RouterSwagger r where Source #
A type for which we can generate a Swagger specification.
genPaths :: Proxy r -> Context -> GenPathsM Paths Source #
genPaths :: RouterSwagger (Rep r ()) => Proxy r -> Context -> GenPathsM Paths Source #
Implementation
Context | |
|