source: trip-planner-front/node_modules/ajv-keywords/keywords/patternRequired.js

Last change on this file was e29cc2e, checked in by Ema <ema_spirova@…>, 3 years ago

primeNG components

  • Property mode set to 100644
File size: 412 bytes
RevLine 
[6a3a178]1'use strict';
2
3module.exports = function defFunc(ajv) {
4 defFunc.definition = {
5 type: 'object',
6 inline: require('./dotjs/patternRequired'),
7 statements: true,
8 errors: 'full',
9 metaSchema: {
10 type: 'array',
11 items: {
12 type: 'string',
13 format: 'regex'
14 },
15 uniqueItems: true
16 }
17 };
18
19 ajv.addKeyword('patternRequired', defFunc.definition);
20 return ajv;
21};
Note: See TracBrowser for help on using the repository browser.