Is it possible to validate a embedded model in the current version of Ember Data?
Each error needs a pointer as defined in the documentation
How to point to a embedded object? For example: data/attributes/nested_resource/1/name
for displaying: 'name' is required for the second translation on the page.
Right now my errors look like:
{errors:
{fields: [
{
code: 'required'
field: 'resource.nested_resource[index].name'
}
]}
}
Aucun commentaire:
Enregistrer un commentaire