_limitItems.jst 327 B

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