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


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

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


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

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

#flagHash[Symbol, untyped]

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

Returns:

  • (Hash[Symbol, untyped])


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

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

#hierarchicalHash[Symbol, untyped]

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

Returns:

  • (Hash[Symbol, untyped])


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

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

#inspectString

Returns:

  • (String)


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

def inspect: () -> String

#listHash[Symbol, untyped]

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

Returns:

  • (Hash[Symbol, untyped])


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

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

#valid?Boolean

Whether the instance is valid.

Returns:

  • (Boolean)


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

def valid?: () -> bool