New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Transformer order is inconsistent #231
Comments
This is probably due to: return (metadataFromAncestorsTarget).reverse().concat((metadataFromTarget || []).reverse()); in And is indeed a bug. @247GradLabs any clue regarding the reason of these calls to |
@VinceOPS Indeed. I think the order should be reversed so the transformers get applied in the correct order, but since I'd be happy to work on a PR to fix this, once this package is under active maintenance again. |
This bug made my day. Apparently, this bug is not critical for open source. |
When several trasnformers are applied at the same the order is reversed every time plainToClass is called. This fix make the trsnsfomers oders consistent across multiple `plainToClass()` calls. Fixes typestack#231
When several trasnformers are applied to the same property the order is reversed every time plainToClass is called. This fix make the transfomers orders consistent across multiple `plainToClass()` calls. Fixes typestack#231
When several trasnformers are applied to the same property the order is reversed every time plainToClass is called. This fix make the transfomers orders consistent across multiple `plainToClass()` calls. Fixes typestack#231
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
The execution order of the transformers should always be the same.
It seems to be reverse each time it's used
This test log:
The text was updated successfully, but these errors were encountered: