In this case model[path] would work if the path is a simple key like errors. However, if the path is a nested key like foo.errors it won't work. We could fix this by doing model.get(path).
@snewcomer let me know if this is good for you and I can go ahead and create a PR.
It looks like the
ds-error
validatior stopped working for nested errors. I assume this https://github.com/offirgolan/ember-validators/commit/f829984c8c28152f6e15d0b091308583fb1ac997 might have broken it.The fix is most likely on this line https://github.com/offirgolan/ember-validators/commit/f829984c8c28152f6e15d0b091308583fb1ac997#diff-ca376f14c1cb0e5696506e00be4f0fa42e7212370c4b5e5bb8eef4970fdcdfceL25
In this case
model[path]
would work if thepath
is a simple key likeerrors
. However, if thepath
is a nested key likefoo.errors
it won't work. We could fix this by doingmodel.get(path)
.@snewcomer let me know if this is good for you and I can go ahead and create a PR.