module JDDF
Provides support for JSON Data Defintion Format (“JDDF”).
Constants
- DISCRIMINATOR_KEYWORDS
The keywords that may appear on a
JDDF
schema discriminator object.Each of these values correspond to an attribute available on {Discriminator}.
- Discriminator
A
JDDF
schema discriminator object.This class is a
Struct
. It is primarily a helper sub-structure of {Schema}.The attributes of this struct are in {DISCRIMINATOR_KEYWORDS}.
- SCHEMA_KEYWORDS
The keywords that may appear on a
JDDF
schema.Each of these values correspond to an attribute available on {Schema}.
- Schema
A
JDDF
schema.This class is a
Struct
. Validate instances against it using {Validator#validate}.This class's attributes are in {SCHEMA_KEYWORDS}.
- TYPES
The values the
type
keyword may take on in aJDDF
schema.The
type
attribute of {Schema} has one of these values.- VERSION
- ValidationError
A single
JDDF
validation error.Instances of this class are returned from {Validator#validate}.
The attributes of this class are both arrays of strings. They represent JSON Pointers.
@attr [Array] instance_path an array of strings pointing to the rejected
part of the input ("instance")
@attr [Array] schema_path an array of strings pointing to the part of the
schema which rejected the instance