How about extending this project with some new decorators that would make use of the fact that both libraries are available?
For example: instead of using @Type(() => Foo) and @IsInstance(Foo, {each: true}) and @IsArray() one could use a single decorator like @IsArrayOf(Foo) which would configure both class-transformer and class-validator with less code.
How about extending this project with some new decorators that would make use of the fact that both libraries are available?
For example: instead of using
@Type(() => Foo)
and@IsInstance(Foo, {each: true})
and@IsArray()
one could use a single decorator like@IsArrayOf(Foo)
which would configure both class-transformer and class-validator with less code.