Exception: JSONSchema::ValidationError
- Inherits:
-
StandardError
- Object
- StandardError
- JSONSchema::ValidationError
- Defined in:
- sig/jsonschema.rbs
Overview
Validation error with detailed information.
Instance Attribute Summary collapse
-
#evaluation_path ⇒ Array[String | Integer]
readonly
Evaluation path.
-
#instance ⇒ Object
readonly
The failing instance value.
-
#instance_path ⇒ Array[String | Integer]
readonly
Path to the failing instance location.
-
#kind ⇒ ValidationErrorKind
readonly
The specific kind of validation error.
-
#message ⇒ String
readonly
Brief error message.
-
#schema_path ⇒ Array[String | Integer]
readonly
Path to the failing schema location.
-
#verbose_message ⇒ String
readonly
Detailed error message with full context.
Instance Method Summary collapse
-
#== ⇒ Boolean
Compare two validation errors by message, schema_path, and instance_path.
-
#evaluation_path_pointer ⇒ String
Evaluation path as JSON Pointer string (RFC 6901), pre-computed in Rust.
-
#hash ⇒ Integer
Hash code based on message, schema_path, and instance_path.
- #initialize ⇒ Object constructor
- #inspect ⇒ String
-
#instance_path_pointer ⇒ String
Convert instance_path to JSON Pointer format (RFC 6901).
-
#schema_path_pointer ⇒ String
Convert schema_path to JSON Pointer format (RFC 6901).
- #to_s ⇒ String
Constructor Details
#initialize ⇒ Object
247 |
# File 'sig/jsonschema.rbs', line 247
def initialize: (
|
Instance Attribute Details
#evaluation_path ⇒ Array[String | Integer] (readonly)
Evaluation path.
239 240 241 |
# File 'sig/jsonschema.rbs', line 239 def evaluation_path @evaluation_path end |
#instance ⇒ Object (readonly)
The failing instance value.
245 246 247 |
# File 'sig/jsonschema.rbs', line 245 def instance @instance end |
#instance_path ⇒ Array[String | Integer] (readonly)
Path to the failing instance location.
233 234 235 |
# File 'sig/jsonschema.rbs', line 233 def instance_path @instance_path end |
#kind ⇒ ValidationErrorKind (readonly)
The specific kind of validation error.
242 243 244 |
# File 'sig/jsonschema.rbs', line 242 def kind @kind end |
#message ⇒ String (readonly)
Brief error message.
227 228 229 |
# File 'sig/jsonschema.rbs', line 227 def @message end |
#schema_path ⇒ Array[String | Integer] (readonly)
Path to the failing schema location.
236 237 238 |
# File 'sig/jsonschema.rbs', line 236 def schema_path @schema_path end |
#verbose_message ⇒ String (readonly)
Detailed error message with full context.
230 231 232 |
# File 'sig/jsonschema.rbs', line 230 def @verbose_message end |
Instance Method Details
#== ⇒ Boolean
Compare two validation errors by message, schema_path, and instance_path.
261 |
# File 'sig/jsonschema.rbs', line 261
def ==: (untyped other) -> bool
|
#evaluation_path_pointer ⇒ String
Evaluation path as JSON Pointer string (RFC 6901), pre-computed in Rust.
274 |
# File 'sig/jsonschema.rbs', line 274
def evaluation_path_pointer: () -> String
|
#hash ⇒ Integer
Hash code based on message, schema_path, and instance_path.
265 |
# File 'sig/jsonschema.rbs', line 265
def hash: () -> Integer
|
#inspect ⇒ String
258 |
# File 'sig/jsonschema.rbs', line 258
def inspect: () -> String
|
#instance_path_pointer ⇒ String
Convert instance_path to JSON Pointer format (RFC 6901).
268 |
# File 'sig/jsonschema.rbs', line 268
def instance_path_pointer: () -> String
|
#schema_path_pointer ⇒ String
Convert schema_path to JSON Pointer format (RFC 6901).
271 |
# File 'sig/jsonschema.rbs', line 271
def schema_path_pointer: () -> String
|
#to_s ⇒ String
257 |
# File 'sig/jsonschema.rbs', line 257
def to_s: () -> String
|