Class: JSONSchema::Validator
- Inherits:
-
Object
- Object
- JSONSchema::Validator
- Defined in:
- sig/jsonschema.rbs
Direct Known Subclasses
Draft201909Validator, Draft202012Validator, Draft4Validator, Draft6Validator, Draft7Validator
Instance Method Summary collapse
-
#each_error {|arg0| ... } ⇒ Object
Iterate validation errors.
-
#evaluate ⇒ Evaluation
Evaluate instance and return structured output.
- #inspect ⇒ String
-
#valid? ⇒ Boolean
Fast validation returning boolean.
-
#validate! ⇒ nil
Validate and raise on first error.
Instance Method Details
#each_error(arg0) ⇒ Array[ValidationError] #each_error(arg0) ⇒ nil
Iterate validation errors. Returns Array when no block given, nil when block given.
184 185 |
# File 'sig/jsonschema.rbs', line 184
def each_error: (untyped instance) -> Array[ValidationError]
| (untyped instance) { (ValidationError) -> void } -> nil
|
#evaluate ⇒ Evaluation
Evaluate instance and return structured output.
188 |
# File 'sig/jsonschema.rbs', line 188
def evaluate: (untyped instance) -> Evaluation
|
#inspect ⇒ String
190 |
# File 'sig/jsonschema.rbs', line 190
def inspect: () -> String
|
#valid? ⇒ Boolean
Fast validation returning boolean.
178 |
# File 'sig/jsonschema.rbs', line 178
def valid?: (untyped instance) -> bool
|
#validate! ⇒ nil
Validate and raise on first error.
181 |
# File 'sig/jsonschema.rbs', line 181
def validate!: (untyped instance) -> nil
|