Ohm-Management - Projektarbeit B-ME
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.

not.jst 861B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. {{# def.definitions }}
  2. {{# def.errors }}
  3. {{# def.setupKeyword }}
  4. {{# def.setupNextLevel }}
  5. {{? {{# def.nonEmptySchema:$schema }} }}
  6. {{
  7. $it.schema = $schema;
  8. $it.schemaPath = $schemaPath;
  9. $it.errSchemaPath = $errSchemaPath;
  10. }}
  11. var {{=$errs}} = errors;
  12. {{# def.setCompositeRule }}
  13. {{
  14. $it.createErrors = false;
  15. var $allErrorsOption;
  16. if ($it.opts.allErrors) {
  17. $allErrorsOption = $it.opts.allErrors;
  18. $it.opts.allErrors = false;
  19. }
  20. }}
  21. {{= it.validate($it) }}
  22. {{
  23. $it.createErrors = true;
  24. if ($allErrorsOption) $it.opts.allErrors = $allErrorsOption;
  25. }}
  26. {{# def.resetCompositeRule }}
  27. if ({{=$nextValid}}) {
  28. {{# def.error:'not' }}
  29. } else {
  30. {{# def.resetErrors }}
  31. {{? it.opts.allErrors }} } {{?}}
  32. {{??}}
  33. {{# def.addError:'not' }}
  34. {{? $breakOnError}}
  35. if (false) {
  36. {{?}}
  37. {{?}}