BlueGit

blue-star danique-bot

Files

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

_limitLength.jst

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