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
482 |
# File 'sig/jsonschema.rbs', line 482
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
486 |
# File 'sig/jsonschema.rbs', line 486
def errors: () -> Array[Hash[Symbol, untyped]]
|
#flag ⇒ Hash[Symbol, untyped]
Flag output format (simplest). Returns { valid: true/false }
470 |
# File 'sig/jsonschema.rbs', line 470
def flag: () -> Hash[Symbol, untyped]
|
#hierarchical ⇒ Hash[Symbol, untyped]
Hierarchical output format (nested). Contains nested structure following schema hierarchy
478 |
# File 'sig/jsonschema.rbs', line 478
def hierarchical: () -> Hash[Symbol, untyped]
|
#inspect ⇒ String
488 |
# File 'sig/jsonschema.rbs', line 488
def inspect: () -> String
|
#list ⇒ Hash[Symbol, untyped]
List output format (flat). Contains { valid: bool, details: [...] }
474 |
# File 'sig/jsonschema.rbs', line 474
def list: () -> Hash[Symbol, untyped]
|
#valid? ⇒ Boolean
Whether the instance is valid.
466 |
# File 'sig/jsonschema.rbs', line 466
def valid?: () -> bool
|