Class: JSONSchema::Evaluation

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

Overview

Structured evaluation output following JSON Schema specification.

Instance Method Summary collapse

Instance Method Details

#annotationsArray[Hash[Symbol, untyped]]

Collected annotations from all evaluated nodes. Each entry contains schemaLocation, instanceLocation, and annotations

Returns:

  • (Array[Hash[Symbol, untyped]])


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

def annotations: () -> Array[Hash[Symbol, untyped]]

#errorsArray[Hash[Symbol, untyped]]

Collected errors from all evaluated nodes. Each entry contains schemaLocation, instanceLocation, error, and absoluteKeywordLocation

Returns:

  • (Array[Hash[Symbol, untyped]])


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

def errors: () -> Array[Hash[Symbol, untyped]]

#flagHash[Symbol, untyped]

Flag output format (simplest). Returns { valid: true/false }

Returns:

  • (Hash[Symbol, untyped])


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

def flag: () -> Hash[Symbol, untyped]

#hierarchicalHash[Symbol, untyped]

Hierarchical output format (nested). Contains nested structure following schema hierarchy

Returns:

  • (Hash[Symbol, untyped])


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

def hierarchical: () -> Hash[Symbol, untyped]

#inspectString

Returns:

  • (String)


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

def inspect: () -> String

#listHash[Symbol, untyped]

List output format (flat). Contains { valid: bool, details: [...] }

Returns:

  • (Hash[Symbol, untyped])


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

def list: () -> Hash[Symbol, untyped]

#valid?Boolean

Whether the instance is valid.

Returns:

  • (Boolean)


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

def valid?: () -> bool