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