pub fn validate(kind: RecordKind, value: &Value) -> Vec<ErrorEntry>Expand description
Validate a record of kind and return every failure, sorted by
(path, code); empty when the record is accepted.
The JSON Schema is the one for the identifier the body declares in
schema (see the module doc). An evalhub.eval/2.0 body with a runs
key returns exactly one error, runs_moved at /runs, and nothing
else. Cost: one pass of the compiled validator plus one walk of the
value; the validator is compiled on the first call for its identifier.