BlueGit

blue-star danique-bot

Files

danique-bot / node_modules / ajv / lib / dot / _limitItems.jst

_limitItems.jst

Import template
timfa Tim · pushed by timfa · 4 years ago
c788ad20 History
_limitItems.jst 327 B Download Raw
1{{# def.definitions }}
2{{# def.errors }}
3{{# def.setupKeyword }}
4{{# def.$data }}
5
6{{ var $op = $keyword == 'maxItems' ? '>' : '<'; }}
7if ({{# def.$dataNotType:'number' }} {{=$data}}.length {{=$op}} {{=$schemaValue}}) {
8 {{ var $errorKeyword = $keyword; }}
9 {{# def.error:'_limitItems' }}
10} {{? $breakOnError }} else { {{?}}