diff --git a/src/core/plugins/spec/selectors.js b/src/core/plugins/spec/selectors.js index bd7bb8e7688..eb8b07ac399 100644 --- a/src/core/plugins/spec/selectors.js +++ b/src/core/plugins/spec/selectors.js @@ -497,10 +497,17 @@ export const validationErrors = (state, pathMethod) => { paramValues.forEach( (p) => { let errors = p.get("errors") if ( errors && errors.count() ) { - errors.forEach( e => result.push(e)) + errors + .map( e => { + if (e instanceof Map) { + return `${e.get("propKey")} : ${e.get("error")}` + } else { + return e + } + }) + .forEach( e => result.push(e)) } }) - return result }