Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4829

DS.InvalidError for relationships

$
0
0

@Ivan_Youroff wrote:

I'm trying to create record with associated records in one request. In case if some of nested records have validation errors, I'd like to access appropriate errors on that record. I'm using json-api adaptor, so what should be the format of errors from the backend? I'm trying something like with no luck:

{"errors":[{"detail":"can't be blank","source":{"pointer":"data/relationships/steps/0/data/attributes/est_threshold"}}]}

According to this line, it should be implemented somehow: https://github.com/emberjs/data/blob/master/addon/adapters/errors.js#L7

Any ideas?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4829

Trending Articles