hjsonschema-0.10.0.2: JSON Schema library

Safe HaskellNone
LanguageHaskell2010

Data.JsonSchema.Draft4.Internal

Contents

Synopsis

Embedded Schemas

embedded :: Schema -> [Schema] Source

Return a schema's immediate subschemas.

Pass this to fetchReferencedSchemas so that function can find all the subschemas in a document. This allows fetchReferencedSchemas to process only "$ref"s and "id"s that are actual schema keywords. For example, within a "properties" validator object an "id" key doesn't actually change any scope, but instead serves a validator-specific function.

Validation (Main internal functions)

Validation (Internal utils)

runSingle :: Schema -> dta -> (Schema -> Maybe val) -> (err -> Invalid) -> (val -> dta -> [err]) -> [Invalid] Source