diff options
Diffstat (limited to 'tools/node_modules/eslint/node_modules/ajv/lib/dot/_limitLength.jst')
-rw-r--r-- | tools/node_modules/eslint/node_modules/ajv/lib/dot/_limitLength.jst | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/node_modules/eslint/node_modules/ajv/lib/dot/_limitLength.jst b/tools/node_modules/eslint/node_modules/ajv/lib/dot/_limitLength.jst new file mode 100644 index 0000000000..cfc8dbb016 --- /dev/null +++ b/tools/node_modules/eslint/node_modules/ajv/lib/dot/_limitLength.jst @@ -0,0 +1,10 @@ +{{# def.definitions }} +{{# def.errors }} +{{# def.setupKeyword }} +{{# def.$data }} + +{{ var $op = $keyword == 'maxLength' ? '>' : '<'; }} +if ({{# def.$dataNotType:'number' }} {{# def.strLength }} {{=$op}} {{=$schemaValue}}) { + {{ var $errorKeyword = $keyword; }} + {{# def.error:'_limitLength' }} +} {{? $breakOnError }} else { {{?}} |