I really hope I'm not blind here and I missed that warning but I feel like it'd be useful to specify somewhere in the docs that the order in which you specify which Transformers to use matters.
In retrospect, it makes complete sense that the order of transformers matters but it wasn't until I ran into this problem that I figured that out. I don't think the behavior should change but the docs should have a warning talking about that fact. I'd send a PR but I'm not sure where to best place that information.
But thank you for this library! It's been such a timesaver for my project! :heart:
I really hope I'm not blind here and I missed that warning but I feel like it'd be useful to specify somewhere in the docs that the order in which you specify which Transformers to use matters.
DtoTransformer
beforeEnumTransformer
The above PHP configuration results in
DtoTransformer
handling everything, including enums which then results in the wrong TypeScript being generated.EnumTransformer
beforeDtoTransformer
The above configuration correctly lets the
EnumTransformer
act first and generate a correct TypeScript enum.My ask
In retrospect, it makes complete sense that the order of transformers matters but it wasn't until I ran into this problem that I figured that out. I don't think the behavior should change but the docs should have a warning talking about that fact. I'd send a PR but I'm not sure where to best place that information.
But thank you for this library! It's been such a timesaver for my project! :heart: