Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- getFromNamed :: forall a. FromJSON a => Proxy a -> Declare (Definitions Schema) NamedSchema
- getToNamed :: forall a. ToJSON a => Proxy a -> Declare (Definitions Schema) NamedSchema
- newtype JordanFromJSONSchema a = JordanFromJSONSchema {}
Documentation
getFromNamed :: forall a. FromJSON a => Proxy a -> Declare (Definitions Schema) NamedSchema Source #
Get documentation for a type that implements FromJSON
getToNamed :: forall a. ToJSON a => Proxy a -> Declare (Definitions Schema) NamedSchema Source #
Get documentation for a type that implements ToJSON
newtype JordanFromJSONSchema a Source #
Newtype for use with DerivingVia.
Allows deriving ToSchema
via DerivingVia, using the Jordan
defintion of ToJSON
.
Instances
(Typeable a, FromJSON a) => ToSchema (JordanFromJSONSchema a) Source # | |
Defined in Jordan.OpenAPI | |
FromJSON a => FromJSON (JordanFromJSONSchema a) Source # | |
Defined in Jordan.OpenAPI fromJSON :: JSONParser f => f (JordanFromJSONSchema a) |