You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
Currently, if there are any partial errors while parsing the copybook, they are added to the payload in the following format:
{
"data": {
"root": {
"child": {
"leaf1": "data",
"leaf2": null// This is null due to errors
}
},
"errors": [
"Failed to convert value 'ABC' to decimal at '$.root.child.leaf2'."
]
}
}
Instead of returning errors as shown above, we could improve the error portion of the payload and return a payload like this:
{
"data": {
"root": {
"child": {
"leaf1": "data",
"leaf2": null// This is null due to errors
}
},
"errors": {
"root": {
"child": {
"leaf2": "Failed to convert value 'ABC' to decimal."
}
}
}
}
}
This would allow the user to easily obtain the errors of specific fields without doing much manual work.
Describe your solution(s)
following sample algorithm will map the current output the described format.
Description:
Currently, if there are any partial errors while parsing the copybook, they are added to the payload in the following format:
Instead of returning errors as shown above, we could improve the error portion of the payload and return a payload like this:
This would allow the user to easily obtain the errors of specific fields without doing much manual work.
Describe your solution(s)
following sample algorithm will map the current output the described format.
Related Issues (optional):
Suggested Labels (optional):
Suggested Assignees (optional):
The text was updated successfully, but these errors were encountered: