Exception: JSONSchema::ValidationError

Inherits:
StandardError
  • Object
show all
Defined in:
sig/jsonschema.rbs

Overview

Validation error with detailed information.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeObject



402
# File 'sig/jsonschema.rbs', line 402

def initialize: (

Instance Attribute Details

#evaluation_pathArray[String | Integer] (readonly)

Evaluation path.

Returns:

  • (Array[String | Integer])


394
395
396
# File 'sig/jsonschema.rbs', line 394

def evaluation_path
  @evaluation_path
end

#instanceObject (readonly)

The failing instance value.

Returns:

  • (Object)


400
401
402
# File 'sig/jsonschema.rbs', line 400

def instance
  @instance
end

#instance_pathArray[String | Integer] (readonly)

Path to the failing instance location.

Returns:

  • (Array[String | Integer])


388
389
390
# File 'sig/jsonschema.rbs', line 388

def instance_path
  @instance_path
end

#kindValidationErrorKind (readonly)

The specific kind of validation error.

Returns:



397
398
399
# File 'sig/jsonschema.rbs', line 397

def kind
  @kind
end

#messageString (readonly)

Brief error message.

Returns:

  • (String)


382
383
384
# File 'sig/jsonschema.rbs', line 382

def message
  @message
end

#schema_pathArray[String | Integer] (readonly)

Path to the failing schema location.

Returns:

  • (Array[String | Integer])


391
392
393
# File 'sig/jsonschema.rbs', line 391

def schema_path
  @schema_path
end

#verbose_messageString (readonly)

Detailed error message with full context.

Returns:

  • (String)


385
386
387
# File 'sig/jsonschema.rbs', line 385

def verbose_message
  @verbose_message
end

Instance Method Details

#==Boolean

Compare two validation errors by message, schema_path, and instance_path.

Parameters:

  • other (Object)

Returns:

  • (Boolean)


416
# File 'sig/jsonschema.rbs', line 416

def ==: (untyped other) -> bool

#evaluation_path_pointerString

Evaluation path as JSON Pointer string (RFC 6901), pre-computed in Rust.

Returns:

  • (String)


429
# File 'sig/jsonschema.rbs', line 429

def evaluation_path_pointer: () -> String

#hashInteger

Hash code based on message, schema_path, and instance_path.

Returns:

  • (Integer)


420
# File 'sig/jsonschema.rbs', line 420

def hash: () -> Integer

#inspectString

Returns:

  • (String)


413
# File 'sig/jsonschema.rbs', line 413

def inspect: () -> String

#instance_path_pointerString

Convert instance_path to JSON Pointer format (RFC 6901).

Returns:

  • (String)


423
# File 'sig/jsonschema.rbs', line 423

def instance_path_pointer: () -> String

#schema_path_pointerString

Convert schema_path to JSON Pointer format (RFC 6901).

Returns:

  • (String)


426
# File 'sig/jsonschema.rbs', line 426

def schema_path_pointer: () -> String

#to_sString

Returns:

  • (String)


412
# File 'sig/jsonschema.rbs', line 412

def to_s: () -> String