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