Fixed JSON Schema validation error message format

refs #10438
This commit is contained in:
Nazar Gargol 2019-02-08 12:17:39 +00:00
parent 28986b3b77
commit d299e8676f

View File

@ -12,9 +12,8 @@ const validate = (schema, definitions, json) => {
if (validation.errors) {
return Promise.reject(new common.errors.ValidationError({
message: common.i18n.t('notices.data.validation.index.validationFailed', {
errorDetails: validation.errors
})
message: common.i18n.t('notices.data.validation.index.validationFailed'),
errorDetails: validation.errors
}));
}