swagger2-2.1.4.1: Swagger 2.0 data model

Safe Haskell | None
Language | Haskell2010

Data.Swagger.Internal.Utils

# Documentation

swaggerFieldRules :: LensRules #

gunfoldEnum :: String -> [a] -> (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c a #

jsonPrefix :: String -> Options #

parseOneOf :: ToJSON a => [a] -> Value -> Parser a #

(<+>) :: Value -> Value -> Value #

genericMempty :: (Generic a, GMonoid (Rep a)) => a #

genericMappend :: (Generic a, GMonoid (Rep a)) => a -> a -> a #

class GMonoid f where #

Minimal complete definition

gmempty, gmappend

Methods

gmempty :: f p #

gmappend :: f p -> f p -> f p #

Instances

GMonoid U1 # |
Methods gmempty :: U1 p # gmappend :: U1 p -> U1 p -> U1 p #
SwaggerMonoid a => GMonoid (K1 i a) # |
Methods gmempty :: K1 i a p # gmappend :: K1 i a p -> K1 i a p -> K1 i a p #
(GMonoid f, GMonoid g) => GMonoid ((:*:) f g) # |
Methods gmempty :: (f :*: g) p # gmappend :: (f :*: g) p -> (f :*: g) p -> (f :*: g) p #
GMonoid f => GMonoid (M1 i t f) # |
Methods gmempty :: M1 i t f p # gmappend :: M1 i t f p -> M1 i t f p -> M1 i t f p #

class SwaggerMonoid m where #

Methods

swaggerMempty :: m #

swaggerMappend :: m -> m -> m #

swaggerMempty :: Monoid m => m #

swaggerMappend :: Monoid m => m -> m -> m #

Instances

SwaggerMonoid Text # |
Methods swaggerMempty :: Text # swaggerMappend :: Text -> Text -> Text #
SwaggerMonoid URL # |
Methods swaggerMempty :: URL # swaggerMappend :: URL -> URL -> URL #
SwaggerMonoid ExternalDocs # |
Methods swaggerMempty :: ExternalDocs # swaggerMappend :: ExternalDocs -> ExternalDocs -> ExternalDocs #
SwaggerMonoid Response # |
Methods swaggerMempty :: Response # swaggerMappend :: Response -> Response -> Response #
SwaggerMonoid Responses # |
Methods swaggerMempty :: Responses # swaggerMappend :: Responses -> Responses -> Responses #
SwaggerMonoid Schema # |
Methods swaggerMempty :: Schema # swaggerMappend :: Schema -> Schema -> Schema #
SwaggerMonoid ParamLocation # |
Methods swaggerMempty :: ParamLocation # swaggerMappend :: ParamLocation -> ParamLocation -> ParamLocation #
SwaggerMonoid ParamOtherSchema # |
Methods swaggerMempty :: ParamOtherSchema # swaggerMappend :: ParamOtherSchema -> ParamOtherSchema -> ParamOtherSchema #
SwaggerMonoid ParamAnySchema # |
Methods swaggerMempty :: ParamAnySchema # swaggerMappend :: ParamAnySchema -> ParamAnySchema -> ParamAnySchema #
SwaggerMonoid Param # |
Methods swaggerMempty :: Param # swaggerMappend :: Param -> Param -> Param #
SwaggerMonoid MimeList # |
Methods swaggerMempty :: MimeList # swaggerMappend :: MimeList -> MimeList -> MimeList #
SwaggerMonoid Operation # |
Methods swaggerMempty :: Operation # swaggerMappend :: Operation -> Operation -> Operation #
SwaggerMonoid PathItem # |
Methods swaggerMempty :: PathItem # swaggerMappend :: PathItem -> PathItem -> PathItem #
SwaggerMonoid Info # |
Methods swaggerMempty :: Info # swaggerMappend :: Info -> Info -> Info #
SwaggerMonoid [a] # |
Methods swaggerMempty :: [a] # swaggerMappend :: [a] -> [a] -> [a] #
SwaggerMonoid (Maybe a) # |
Methods swaggerMempty :: Maybe a # swaggerMappend :: Maybe a -> Maybe a -> Maybe a #
Ord a => SwaggerMonoid (Set a) # |
Methods swaggerMempty :: Set a # swaggerMappend :: Set a -> Set a -> Set a #
Monoid a => SwaggerMonoid (Referenced a) # |
Methods swaggerMempty :: Referenced a # swaggerMappend :: Referenced a -> Referenced a -> Referenced a #
SwaggerMonoid (ParamSchema t) # |
Methods swaggerMempty :: ParamSchema t # swaggerMappend :: ParamSchema t -> ParamSchema t -> ParamSchema t #
SwaggerMonoid (SwaggerType t) # |
Methods swaggerMempty :: SwaggerType t # swaggerMappend :: SwaggerType t -> SwaggerType t -> SwaggerType t #
(Eq k, Hashable k) => SwaggerMonoid (HashMap k v) # |
Methods swaggerMempty :: HashMap k v # swaggerMappend :: HashMap k v -> HashMap k v -> HashMap k v #
Ord k => SwaggerMonoid (Map k v) # |
Methods swaggerMempty :: Map k v # swaggerMappend :: Map k v -> Map k v -> Map k v #
(Eq k, Hashable k) => SwaggerMonoid (InsOrdHashMap k v) # |
Methods swaggerMempty :: InsOrdHashMap k v # swaggerMappend :: InsOrdHashMap k v -> InsOrdHashMap k v -> InsOrdHashMap k v #
SwaggerMonoid (InsOrdHashMap FilePath PathItem) # |
Methods swaggerMempty :: InsOrdHashMap FilePath PathItem # swaggerMappend :: InsOrdHashMap FilePath PathItem -> InsOrdHashMap FilePath PathItem -> InsOrdHashMap FilePath PathItem #