1
0
Fork 0
management/front/dkha-web-sz-main/node_modules/ajv/lib/dot/_limitLength.jst

13 lines
358 B
Plaintext
Raw Normal View History

2023-12-18 13:12:25 +08:00
{{# def.definitions }}
{{# def.errors }}
{{# def.setupKeyword }}
{{# def.$data }}
2024-01-16 21:26:16 +08:00
{{# def.numberKeyword }}
2023-12-18 13:12:25 +08:00
{{ var $op = $keyword == 'maxLength' ? '>' : '<'; }}
if ({{# def.$dataNotType:'number' }} {{# def.strLength }} {{=$op}} {{=$schemaValue}}) {
{{ var $errorKeyword = $keyword; }}
{{# def.error:'_limitLength' }}
} {{? $breakOnError }} else { {{?}}