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
数组中无法使用。
为什么有任何想法?
谢谢!