From 4dd7399b50a091e2e34b32c75ff9f04b0c3ef063 Mon Sep 17 00:00:00 2001 From: "M. George Hansen" Date: Wed, 6 Feb 2019 12:34:50 -0800 Subject: [PATCH] Add json examples to Capitalize and Choice transformers in README --- README.md | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 29fdb9e..a92ea46 100644 --- a/README.md +++ b/README.md @@ -140,14 +140,30 @@ Rules are objects with two fields: ### Transformers - - #### Capitalize +```json +{ + "Capitalize": {} +} +``` + Transforms string fields into Capital Case. #### Choice +```json +{ + "Choice": { + "choices": [ + "A", + "B", + "C" + ] + } +} +``` + Only accepts a pre-defined list of acceptable values and rejects the rest. #### Date