如何在呈現的JSON中包含errors.allErrors?JSON中的Grails allErrors
我想我的JSON看起來是這樣的:
{id:10
name:""
_errors: [{name:"Name cannot be blank"}],
children: [{field:"value", _errors:[]}, ...]
}
等
這樣使用像角的時候,我們在同一個「階級」爲領域中的錯誤。當你有一個複雜的樹時,在另一個地圖上返回錯誤不起作用。
你看過這個問題嗎? – dsharew