|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
412 bytes
|
| Line | |
|---|
| 1 | 'use strict';
|
|---|
| 2 |
|
|---|
| 3 | module.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.