source: imaps-frontend/node_modules/ajv/lib/dot/_limitItems.jst@ d565449

main
Last change on this file since d565449 was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 353 bytes
Line 
1{{# def.definitions }}
2{{# def.errors }}
3{{# def.setupKeyword }}
4{{# def.$data }}
5
6{{# def.numberKeyword }}
7
8{{ var $op = $keyword == 'maxItems' ? '>' : '<'; }}
9if ({{# def.$dataNotType:'number' }} {{=$data}}.length {{=$op}} {{=$schemaValue}}) {
10 {{ var $errorKeyword = $keyword; }}
11 {{# def.error:'_limitItems' }}
12} {{? $breakOnError }} else { {{?}}
Note: See TracBrowser for help on using the repository browser.