diff options
Diffstat (limited to 'deps/npm/node_modules/ajv/lib/dot/_limitItems.jst')
-rw-r--r-- | deps/npm/node_modules/ajv/lib/dot/_limitItems.jst | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/deps/npm/node_modules/ajv/lib/dot/_limitItems.jst b/deps/npm/node_modules/ajv/lib/dot/_limitItems.jst new file mode 100644 index 00000000000..a3e078e5134 --- /dev/null +++ b/deps/npm/node_modules/ajv/lib/dot/_limitItems.jst @@ -0,0 +1,10 @@ +{{# def.definitions }} +{{# def.errors }} +{{# def.setupKeyword }} +{{# def.$data }} + +{{ var $op = $keyword == 'maxItems' ? '>' : '<'; }} +if ({{# def.$dataNotType:'number' }} {{=$data}}.length {{=$op}} {{=$schemaValue}}) { + {{ var $errorKeyword = $keyword; }} + {{# def.error:'_limitItems' }} +} {{? $breakOnError }} else { {{?}} |