This repository was archived by the owner on Apr 13, 2022. It is now read-only.

Description
When you have a param into a controller method that is an array you need to specify the array schema manually.
public async saveBulk(
@Param(yup.array().transform(values => values.map(v => new MyModel(v))))
bulkItems: Array<MyModel>): Promise<any> { ... }
but it would be nice if the @Param() decorator could detect the array input type and handle it accordingly, this may well apply to the Validate() decorator as well.