2017-05-03 15:35:00 +02:00
|
|
|
{{# def.definitions }}
|
|
|
|
{{# def.errors }}
|
|
|
|
{{# def.setupKeyword }}
|
|
|
|
{{# def.$data }}
|
|
|
|
|
|
|
|
{{? !$isData }}
|
|
|
|
var schema{{=$lvl}} = validate.schema{{=$schemaPath}};
|
|
|
|
{{?}}
|
|
|
|
var {{=$valid}} = equal({{=$data}}, schema{{=$lvl}});
|
2017-08-14 05:01:11 +02:00
|
|
|
{{# def.checkError:'const' }}
|
|
|
|
{{? $breakOnError }} else { {{?}}
|