jsonschema-gen-0.4.1.0: JSON Schema generator from Algebraic data type

Safe HaskellSafe
LanguageHaskell2010

Data.JSON.Schema.Generator.Class

Synopsis

Documentation

class JSONSchemaPrim a where Source #

Minimal complete definition

toSchemaPrim

class GJSONSchemaGen f where Source #

Minimal complete definition

gToSchema

Methods

gToSchema :: Options -> Proxy (f a) -> Schema Source #

data Options Source #

Options that specify how to generate schema definition automatically from your datatype.

Constructors

Options 

Fields

Instances

data FieldType Source #

Constructors

JSONSchemaPrim a => FieldType (Proxy a) 

defaultOptions :: Options Source #

Default geerating Options:

Options
{ baseUri        = ""
, schemaIdSuffix = ""
, refSchemaMap   = Map.empty
}