diff --git a/src/core/Ingredient.mjs b/src/core/Ingredient.mjs index 7c4e2485..4f81f83b 100644 --- a/src/core/Ingredient.mjs +++ b/src/core/Ingredient.mjs @@ -66,6 +66,12 @@ class Ingredient { } + /** + * Validates the given value against the constraints of this ingredient. + * + * @param {*} val + * @returns {boolean} + */ validate(val) { if (this.disabled) return true; diff --git a/src/core/operations/AutomatedValidationTestOp.mjs b/src/core/operations/AutomatedValidationTestOp.mjs index 1a7c86b2..315eb417 100644 --- a/src/core/operations/AutomatedValidationTestOp.mjs +++ b/src/core/operations/AutomatedValidationTestOp.mjs @@ -6,8 +6,14 @@ import Operation from "../Operation.mjs"; +/** + * Automated validation test operation + */ class AutomatedValidationTestOp extends Operation { + /** + * AutomatedValidationTestOp constructor + */ constructor() { super(); @@ -58,6 +64,11 @@ class AutomatedValidationTestOp extends Operation { ]; } + /** + * @param {string} input + * @param {Object[]} args + * @returns {string} + */ run(input, args) { return "Success"; }