Class: JDDF::ValidationError
- Inherits:
-
Struct
- Object
- Struct
- JDDF::ValidationError
- 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_path ⇒ Array
an array of strings pointing to the rejected part of the input (“instance”).
-
#schema_path ⇒ Array
an array of strings pointing to the part of the schema which rejected the instance.
Instance Attribute Details
#instance_path ⇒ Array
an array of strings pointing to the rejected part of the input (“instance”)
18 19 20 |
# File 'lib/jddf/validator.rb', line 18 def instance_path @instance_path end |
#schema_path ⇒ Array
an array of strings pointing to the part of the schema which rejected the instance
18 19 20 |
# File 'lib/jddf/validator.rb', line 18 def schema_path @schema_path end |