const.jst 280 B

123456789101112
  1. {{# def.definitions }}
  2. {{# def.errors }}
  3. {{# def.setupKeyword }}
  4. {{# def.$data }}
  5. {{? !$isData }}
  6. var schema{{=$lvl}} = validate.schema{{=$schemaPath}};
  7. {{?}}
  8. var {{=$valid}} = equal({{=$data}}, schema{{=$lvl}});
  9. {{# def.checkError:'const' }}
  10. {{? $breakOnError }} else { {{?}}