person: on-the-fly person: first implementation of makeFetch for posting person

This commit is contained in:
nobohan
2022-01-10 18:11:02 +01:00
parent 15342f85d3
commit 378f3a16fc
2 changed files with 16 additions and 7 deletions

View File

@@ -86,6 +86,7 @@ const ValidationException = (response) => {
const error = {};
error.name = 'ValidationException';
error.violations = response.violations.map((violation) => `${violation.title}`);
error.propertyPaths = response.violations.map((violation) => `${violation.propertyPath}`);
return error;
}