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