[FEATURE] custom validation rules for buildDefinition & deploy & retrieve #1645
Labels
enhancement
New feature or request; requires increasing the minor version of mcdev. Jira issue-type "Story"
NEW
not yet analyzed new issues get this label
validationRule
Milestone
based on
idea is that we offer an option to run a callback function (needs to be nicely encapsulated to not break mcdev) to offer full flexibility.
the hook should run
the method parameters:
the method may be async - we shall put an await in front of it for good measure and a try catch around it to format the error message.
it shall either return the (potentially adapted) object it received as parameter OR throw a descriptive error.
in preDeployTasks, that error will NOT be caught, preventing deployment
in buildTemplate it will be caught and displayed as a warning, allowing the file to be saved in the deploy folder
the callback-javascript file path can be set via a new option in .mcdevrc, relative to the project root
The text was updated successfully, but these errors were encountered: