BlueGit

blue-star danique-bot

Files

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

_limitProperties.jst

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