Copyright | (c) Anton Gushcha 2016 |
---|---|
License | MIT |
Maintainer | ncrashed@gmail.com |
Stability | experimental |
Portability | Portable |
Safe Haskell | None |
Language | Haskell2010 |
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"
Synopsis
Documentation
schemaOptionsDropPrefix :: String -> SchemaOptions Source #
Strip given prefix from fields