Closed arkraft closed 5 years ago
@arkraft Can you provide a example. And then, fixes checks.
I wanted to add examples and update the README. The WIP in the title actually stands for 'Work In Progress', There where a few things i still wanted to check out
This MR adds https://github.com/typestack/class-transformer to transform the result types. Strings, which have the a format of
date
ordate-time
are now transformed to aDate
instance.The default option used for class-transformer is to ignore all additional parameters. So the transformed result Object only contains the parameters defined inside the DTO or generated model and additional parameters returned by the API are ignored.
There is an option to enable class-transformer which is
false
by default and therefore it does not break any existing usage.