Class: JSI::Validation::Error
- Inherits:
-
Object
- Object
- JSI::Validation::Error
- Defined in:
- lib/jsi/validation/error.rb
Overview
a validation error of a schema instance against a schema
Instance Attribute Summary collapse
-
#instance_document ⇒ Object
document containing the instance at instance_ptr.
-
#instance_ptr ⇒ JSI::Ptr
pointer to the instance in instance_document.
-
#keyword ⇒ String
the keyword of the schema which failed to validate.
-
#message ⇒ String
a message describing the error.
-
#schema ⇒ JSI::Schema
the schema against which the instance failed to validate.
Instance Attribute Details
#instance_document ⇒ Object
document containing the instance at instance_ptr
31 32 |
# File 'lib/jsi/validation/error.rb', line 31 class Error end |
#instance_ptr ⇒ JSI::Ptr
pointer to the instance in instance_document
31 32 |
# File 'lib/jsi/validation/error.rb', line 31 class Error end |
#keyword ⇒ String
the keyword of the schema which failed to validate.
this may be absent if the error is not from a schema keyword (i.e, false
schema).
31 32 |
# File 'lib/jsi/validation/error.rb', line 31 class Error end |
#message ⇒ String
a message describing the error
31 32 |
# File 'lib/jsi/validation/error.rb', line 31 class Error end |
#schema ⇒ JSI::Schema
the schema against which the instance failed to validate
31 32 |
# File 'lib/jsi/validation/error.rb', line 31 class Error end |