_limitProperties.jst 350 B

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