You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
280 B

4 years ago
  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 { {{?}}