From 7b364e1cfd2bbcd717978ba478d4560345b89d72 Mon Sep 17 00:00:00 2001 From: Acidiney Dias Date: Fri, 22 Oct 2021 08:49:59 +0100 Subject: [PATCH] Update readme.md --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 47fa8d6..45e99b9 100644 --- a/readme.md +++ b/readme.md @@ -93,7 +93,7 @@ console.log(CreateUserDto.entries()) // firstName, lastName, email ``` You can use this, in `request.only` for example to retrive from request only this elements. -## .validate(obj: Object) +## .validate(obj: Object | array) The `.validate` function receive the current payload, validate with type and obrigatority and returns an serialized `object` or throws an `ValidateException`.