hjsonschema-1.6.3: JSON Schema library

Safe HaskellNone
LanguageHaskell2010

JSONSchema.Types

Synopsis

Documentation

newtype Spec schema err Source #

Constructors

Spec 

Fields

embedded :: Spec schema a -> schema -> ([schema], [schema]) Source #

Return a schema's immediate subschemas.

The first list is subschemas validating the same level of the document, the second list is subschemas validating lower levels (see Fail for a full explanation).

validate :: Spec schema err -> schema -> Value -> [err] Source #

newtype Schema Source #

A basic schema type that doesn't impose much structure.

Draft4 doesn't use this, but instead uses the record based one defined in Schema to make it easier to write draft 4 schemas in Haskell.

Constructors

Schema