| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Jordan.OpenAPI
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.
Constructors
| JordanFromJSONSchema | |
Fields | |
Instances
| (Typeable a, FromJSON a) => ToSchema (JordanFromJSONSchema a) Source # | |
Defined in Jordan.OpenAPI Methods declareNamedSchema :: Proxy (JordanFromJSONSchema a) -> Declare (Definitions Schema) NamedSchema # | |
| FromJSON a => FromJSON (JordanFromJSONSchema a) Source # | |
Defined in Jordan.OpenAPI Methods fromJSON :: JSONParser f => f (JordanFromJSONSchema a) | |