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


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

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


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

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

#flagHash[Symbol, untyped]

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

Returns:

  • (Hash[Symbol, untyped])


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

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

#hierarchicalHash[Symbol, untyped]

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

Returns:

  • (Hash[Symbol, untyped])


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

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

#inspectString

Returns:

  • (String)


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

def inspect: () -> String

#listHash[Symbol, untyped]

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

Returns:

  • (Hash[Symbol, untyped])


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

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

#valid?Boolean

Whether the instance is valid.

Returns:

  • (Boolean)


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

def valid?: () -> bool