harbor run -t openthoughts/tasktrove-exp-rpt-stack-jest-large-stack-jest-1170harbor download openthoughts/tasktrove-exp-rpt-stack-jest-large-stack-jest-1170Task: Implement a RuleHelper utility to perform key presence checks and value validations, plus a rules manager that validates a payload against a schema.
Location: /app/src/helpers/RuleHelper.js
What to implement
checkMissingKey(expectedKey, payload)
checkType(fieldName, value, typeSpec, errors)
checkLength(fieldName, value, constraints, errors)
checkInEnum(fieldName, value, enumArray, errors)
Notes and constraints
Example usage (conceptual):