validateField(field, value) { const validationField = {}; validationField[field] = value; const validationRule = this.ruleForField(field); const error = validate.validate(validationField, validationRule); this.reconcileErrors(field, error); return error; }
validateAll(values) { this.errors = validate.validate(values, this.schema); return this.errors; }