Merge branch 'master' into 5.0.0
commit
d4fb50bdbe
|
@ -68,9 +68,8 @@ var {{=$valid}};
|
||||||
{{## def.extendErrors:_inline:
|
{{## def.extendErrors:_inline:
|
||||||
for (var {{=$i}}={{=$errs}}; {{=$i}}<errors; {{=$i}}++) {
|
for (var {{=$i}}={{=$errs}}; {{=$i}}<errors; {{=$i}}++) {
|
||||||
var {{=$ruleErr}} = vErrors[{{=$i}}];
|
var {{=$ruleErr}} = vErrors[{{=$i}}];
|
||||||
{{# _inline ? 'if (\{\{=$ruleErr\}\}.dataPath === undefined) {' : '' }}
|
if ({{=$ruleErr}}.dataPath === undefined)
|
||||||
{{=$ruleErr}}.dataPath = (dataPath || '') + {{= it.errorPath }};
|
{{=$ruleErr}}.dataPath = (dataPath || '') + {{= it.errorPath }};
|
||||||
{{# _inline ? '}' : '' }}
|
|
||||||
{{# _inline ? 'if (\{\{=$ruleErr\}\}.schemaPath === undefined) {' : '' }}
|
{{# _inline ? 'if (\{\{=$ruleErr\}\}.schemaPath === undefined) {' : '' }}
|
||||||
{{=$ruleErr}}.schemaPath = "{{=$errSchemaPath}}";
|
{{=$ruleErr}}.schemaPath = "{{=$errSchemaPath}}";
|
||||||
{{# _inline ? '}' : '' }}
|
{{# _inline ? '}' : '' }}
|
||||||
|
|
Loading…
Reference in New Issue