_limitItems.jst 353 B

12345678910111213
  1. {{# def.definitions }}
  2. {{# def.errors }}
  3. {{# def.setupKeyword }}
  4. {{# def.$data }}
  5. {{# def.numberKeyword }}
  6. {{ var $op = $keyword == 'maxItems' ? '>' : '<'; }}
  7. if ({{# def.$dataNotType:'number' }} {{=$data}}.length {{=$op}} {{=$schemaValue}}) {
  8. {{ var $errorKeyword = $keyword; }}
  9. {{# def.error:'_limitItems' }}
  10. } {{? $breakOnError }} else { {{?}}