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