Module
Data.JSON.Definition
- Package
- purescript-json-schema
- Repository
- felixmulder/purescript-json-schema
#Definition Source
newtype Definition a
Constructors
Instances
Newtype (Definition a) _
Show (Definition a)
Eq (Definition a)
#JsonSchema Source
#RecordDefinition Source
class RecordDefinition a where
Members
Instances
(RowToList fields fieldList, RowToProperty fieldList) => RecordDefinition (Record fields)
#RowToProperty Source
class RowToProperty (xs :: RowList) where
Members
toPropertyArray :: RLProxy xs -> Array Property
Instances
(IsSymbol name, IsType head, JsonSchema head, RowToProperty tail, Cons name (Maybe head) trash row) => RowToProperty (Cons name (Maybe head) tail)
(IsSymbol name, IsType head, JsonSchema head, RowToProperty tail, Cons name head trash row) => RowToProperty (Cons name head tail)
RowToProperty Nil
#showJson Source
showJson :: forall a. Definition a -> String
Write a Definition a
to a JSON string
#showYaml Source
showYaml :: forall a. Definition a -> String
Write a Definition a
to a YAML string
- Modules
- Data.
JSON. Definition - Data.
JSON. Schema