Class: JSONSchema::Evaluation
- Inherits:
-
Object
- Object
- JSONSchema::Evaluation
- Defined in:
- sig/jsonschema.rbs
Overview
Structured evaluation output following JSON Schema specification.
Instance Method Summary collapse
-
#annotations ⇒ Array[Hash[Symbol, untyped]]
Collected annotations from all evaluated nodes.
-
#errors ⇒ Array[Hash[Symbol, untyped]]
Collected errors from all evaluated nodes.
-
#flag ⇒ Hash[Symbol, untyped]
Flag output format (simplest).
-
#hierarchical ⇒ Hash[Symbol, untyped]
Hierarchical output format (nested).
- #inspect ⇒ String
-
#list ⇒ Hash[Symbol, untyped]
List output format (flat).
-
#valid? ⇒ Boolean
Whether the instance is valid.
Instance Method Details
#annotations ⇒ Array[Hash[Symbol, untyped]]
Collected annotations from all evaluated nodes. Each entry contains schemaLocation, instanceLocation, and annotations
466 |
# File 'sig/jsonschema.rbs', line 466
def annotations: () -> Array[Hash[Symbol, untyped]]
|
#errors ⇒ Array[Hash[Symbol, untyped]]
Collected errors from all evaluated nodes. Each entry contains schemaLocation, instanceLocation, error, and absoluteKeywordLocation
470 |
# File 'sig/jsonschema.rbs', line 470
def errors: () -> Array[Hash[Symbol, untyped]]
|
#flag ⇒ Hash[Symbol, untyped]
Flag output format (simplest). Returns { valid: true/false }
454 |
# File 'sig/jsonschema.rbs', line 454
def flag: () -> Hash[Symbol, untyped]
|
#hierarchical ⇒ Hash[Symbol, untyped]
Hierarchical output format (nested). Contains nested structure following schema hierarchy
462 |
# File 'sig/jsonschema.rbs', line 462
def hierarchical: () -> Hash[Symbol, untyped]
|
#inspect ⇒ String
472 |
# File 'sig/jsonschema.rbs', line 472
def inspect: () -> String
|
#list ⇒ Hash[Symbol, untyped]
List output format (flat). Contains { valid: bool, details: [...] }
458 |
# File 'sig/jsonschema.rbs', line 458
def list: () -> Hash[Symbol, untyped]
|
#valid? ⇒ Boolean
Whether the instance is valid.
450 |
# File 'sig/jsonschema.rbs', line 450
def valid?: () -> bool
|