Closed MigasEu closed 3 years ago
Thanks for reporting and for the code sample, that will make it quicker for me to test. I'll try to resolve this soon, but I do have a busy weekend so it may be a few days.
Just bumping this, as we just ran into this issue too.
Hello all, I'm sorry for taking so long to resolve this -- my life has been terribly busy lately and I haven't had time to really sit down and figure this one out until recently. This issue should be resolved in v5.4.0, and you can additionally customize how decorators are inherited. Closing this issue for now.
Thanks @tannerntannern ! You're a god
I'm working with class validator and ts-mixer, but it seems to have a problem inheriting inherited decorators. It inherits the decorators from the parent, but not from grandparents.
Example:
This causes only validations from
Statusable2
to be triggered, and the ones fromExtendedObject
to be ignored.A workaround is to do
Mixin(Statusable2, Disposable, Statusable, ExtendedObject)
, but the best solution for maintainability.