嵌套模型错误属性将被忽略

时间:2014-12-12 20:27:32

标签: ember.js ember-data

API响应如下:

{
  "errors": {
    "username": ["This username is already taken!"],
    "email": ["Doesn't look like a valid email."]
  }
}

按照here所述正确处理。

然而,有这样的回应:

{
  "errors": {
    "username": ["This username is already taken!"],
    "email": ["Doesn't look like a valid email."],
    "address.street": ["Can't be blank"]
  }
}

由于某种原因" address.street"在model.errors数组中无法使用。

为什么有任何想法?

谢谢!

0 个答案:

没有答案