ruoyi-vue-nocode/ruoyi-ui/ruoyi-bpmnjs/resources/properties-panel/provider/activiti/element-templates/util/validate.js
2022-08-11 16:10:41 +08:00

16 lines
333 B
JavaScript

'use strict';
var Validator = require('../Validator');
/**
* Validate the given template descriptors and
* return a list of errors.
*
* @param {Array<TemplateDescriptor>} descriptors
*
* @return {Array<Error>}
*/
module.exports = function validate(descriptors) {
return new Validator().addAll(descriptors).getErrors();
};