| Copyright | (c) Anton Gushcha 2016 |
|---|---|
| License | MIT |
| Maintainer | ncrashed@gmail.com |
| Stability | experimental |
| Portability | Portable |
| Safe Haskell | None |
| Language | Haskell2010 |
Servant.API.Auth.Token.Internal.Schema
Description
Common usage:
data PagedList i a = PagedList {
pagedListItems :: ![a] -- ^ Payload
, pagedListPages :: !Word -- ^ Count of available pages
} deriving (Generic, Show)
instance (ToSchema i, ToSchema a) => ToSchema (PagedList i a) where
declareNamedSchema = genericDeclareNamedSchema $
schemaOptionsDropPrefix "pagedList"Documentation
schemaOptionsDropPrefix :: String -> SchemaOptions Source #
Strip given prefix from fields