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


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

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


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

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

#flagHash[Symbol, untyped]

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

Returns:

  • (Hash[Symbol, untyped])


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

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

#hierarchicalHash[Symbol, untyped]

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

Returns:

  • (Hash[Symbol, untyped])


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

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

#inspectString

Returns:

  • (String)


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

def inspect: () -> String

#listHash[Symbol, untyped]

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

Returns:

  • (Hash[Symbol, untyped])


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

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

#valid?Boolean

Whether the instance is valid.

Returns:

  • (Boolean)


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

def valid?: () -> bool