we have similar case as we need to return, in addition to success data, some “business errors” or “warnings messages” (not only for bulk operations). we are thinking about:
{
“meta”:{
“warnings”: [{
“code”: “723119”,
“source”: { “parameter”: “promo” },
“title”: “ignored”,
“detail”: “overridden by default value”
}]
},
“data”:{…}
}
warning object has same structure as for error object
your thoughts!