From de7b17d4ccbe5841c8347a5946227e0a87b8790d Mon Sep 17 00:00:00 2001 From: Bas Kamer Date: Sat, 16 May 2020 16:40:41 +0200 Subject: [PATCH] Update README.md dot notation to pojo on validationMap --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 33197e78..5951b896 100644 --- a/README.md +++ b/README.md @@ -624,8 +624,10 @@ user.set('address.zipCode', '123'); let validationMap = { lastName: validateLength({ min: 8 }), - // specify nested keys with dot delimiters - 'address.zipCode': validateLength({ is: 5 }), + // specify nested keys with pojo's + address: { + zipCode: : validateLength({ is: 5 }) + } }; let changeset = Changeset(user, validatorFn, validationMap);