Closed kenberkeley closed 3 years ago
At the moment ts-mixer supports class-validator quite well except the scenario requires class-transformer.
ts-mixer
For example: https://stackoverflow.com/a/58366367/5172890 , @Type is required for nested collection objects validation.
@Type
Workaround: suppress the type error by // @ts-ignore or // @ts-expect-error
// @ts-ignore
// @ts-expect-error
Try @decorate(Type(() => Tag) as PropertyDecorator). Closing for now. Let me know if this doesn't resolve your issue.
@decorate(Type(() => Tag) as PropertyDecorator)
At the moment
ts-mixer
supports class-validator quite well except the scenario requires class-transformer.For example: https://stackoverflow.com/a/58366367/5172890 ,
@Type
is required for nested collection objects validation.Online REPL example (link)