validate method
Validate instance; the schema itself was checked when built.
Implementation
JsonSchemaResult validate(Object? instance) {
_evaluations = 0;
_deadline = DateTime.now().add(limits.timeBudget);
final errors = <JsonSchemaError>[];
_eval(_root, instance, _Ctx(_rootBase, [_rootBase], '', '', 0), errors);
return JsonSchemaResult(errors);
}