Class: JDDF::ValidationError

Inherits:
Struct
  • Object
show all
Defined in:
lib/jddf/validator.rb

Overview

A single JDDF validation error.

Instances of this class are returned from JDDF::Validator#validate.

The attributes of this class are both arrays of strings. They represent JSON Pointers.

Instance Attribute Summary collapse

Instance Attribute Details

#instance_pathArray

an array of strings pointing to the rejected part of the input (“instance”)

Returns:

  • (Array)

    the current value of instance_path


18
19
20
# File 'lib/jddf/validator.rb', line 18

def instance_path
  @instance_path
end

#schema_pathArray

an array of strings pointing to the part of the schema which rejected the instance

Returns:

  • (Array)

    the current value of schema_path


18
19
20
# File 'lib/jddf/validator.rb', line 18

def schema_path
  @schema_path
end