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]])


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

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]])


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

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

#flagHash[Symbol, untyped]

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

Returns:

  • (Hash[Symbol, untyped])


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

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

#hierarchicalHash[Symbol, untyped]

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

Returns:

  • (Hash[Symbol, untyped])


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

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

#inspectString

Returns:

  • (String)


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

def inspect: () -> String

#listHash[Symbol, untyped]

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

Returns:

  • (Hash[Symbol, untyped])


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

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

#valid?Boolean

Whether the instance is valid.

Returns:

  • (Boolean)


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

def valid?: () -> bool