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 Method Summary collapse
-
#initialize(attributes = {}) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(attributes = {}) ⇒ Error
Returns a new instance of Error.
32 33 34 35 |
# File 'lib/jsi/validation/error.rb', line 32 def initialize(attributes = {}) super freeze end |
Instance Attribute Details
#instance_document ⇒ Object
document containing the instance at instance_ptr
31 32 33 34 35 36 |
# File 'lib/jsi/validation/error.rb', line 31 class Error def initialize(attributes = {}) super freeze end end |
#instance_ptr ⇒ JSI::Ptr
pointer to the instance in instance_document
31 32 33 34 35 36 |
# File 'lib/jsi/validation/error.rb', line 31 class Error def initialize(attributes = {}) super freeze end 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 33 34 35 36 |
# File 'lib/jsi/validation/error.rb', line 31 class Error def initialize(attributes = {}) super freeze end end |
#message ⇒ String
a message describing the error
31 32 33 34 35 36 |
# File 'lib/jsi/validation/error.rb', line 31 class Error def initialize(attributes = {}) super freeze end end |
#schema ⇒ JSI::Schema
the schema against which the instance failed to validate
31 32 33 34 35 36 |
# File 'lib/jsi/validation/error.rb', line 31 class Error def initialize(attributes = {}) super freeze end end |