hjsonschema-0.5.1.0: JSON Schema Draft 4 library

Safe HaskellNone
LanguageHaskell2010

Data.JsonSchema.Validators

Description

This is generally meant to be an internal module. It's only exposed in case you want to make your own Spec. If you just want to use JSON Schema Draft 4 use the preassembled draft4 instead.

Synopsis

Documentation

items :: ValidatorGen Source

Also covers additionalItems.

additionalItems :: ValidatorGen Source

Not included directly in the draft4 spec hashmap because it always validates data unless items is also present. This is because items defaults to {}.

runAdditionalProperties :: ValidatorGen Source

An implementation of the "additionalProperties" keyword that never disables itself. Not included directly in the draft4 spec hashmap.