Work in progress to massage error payloads so ember-data will add them to model.get('errors').
The extractErrors() override works for us on the application level, for a client's project, but when applying it to the add-on I'm still getting the same Encountered "errors" in payload, but no model was found for model name "error" message.
I found these checks under the extractSingle() and extractArray() methods, in ember-data:
var typeName = this.typeForRoot(prop);
if (!store.modelFactoryFor(typeName)) {
Ember.warn(this.warnMessageNoModelForKey(prop, typeName), false);
continue;
}
I'm not sure how to get past them in overrides for above methods, yet. Any ideas?
Closing this pull request since it has gone stale and no active development has taken place. @oliverbarnes If you think this is unjustified please let me know.
Work in progress to massage error payloads so ember-data will add them to
model.get('errors')
.The
extractErrors()
override works for us on the application level, for a client's project, but when applying it to the add-on I'm still getting the sameEncountered "errors" in payload, but no model was found for model name "error"
message.I found these checks under the
extractSingle()
andextractArray()
methods, in ember-data:I'm not sure how to get past them in overrides for above methods, yet. Any ideas?
closes #29