Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
- class JSONSchemaGen a where
- class JSONSchemaPrim a where
- class GJSONSchemaGen f where
- genericToSchema :: (Generic a, GJSONSchemaGen (Rep a)) => Options -> Proxy a -> Schema
- data Options = Options {}
- data FieldType = JSONSchemaPrim a => FieldType (Proxy a)
- defaultOptions :: Options
Documentation
class JSONSchemaGen a where Source #
class JSONSchemaPrim a where Source #
class GJSONSchemaGen f where Source #
genericToSchema :: (Generic a, GJSONSchemaGen (Rep a)) => Options -> Proxy a -> Schema Source #
Options that specify how to generate schema definition automatically from your datatype.
Options | |
|
defaultOptions :: Options Source #
Default geerating Options
:
Options
{baseUri
= "" ,schemaIdSuffix
= "" ,refSchemaMap
= Map.empty }