You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 13, 2022. It is now read-only.
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.
The text was updated successfully, but these errors were encountered:
When you have a param into a controller method that is an array you need to specify the array schema manually.
but it would be nice if the
@Param()
decorator could detect the array input type and handle it accordingly, this may well apply to theValidate()
decorator as well.The text was updated successfully, but these errors were encountered: