1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
| '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();
| };
|
|