Add json examples to Capitalize and Choice transformers in README

This commit is contained in:
M. George Hansen 2019-02-06 12:34:50 -08:00
parent 26c5433d16
commit 4dd7399b50
Signed by: mgeorgehansen
SSH key fingerprint: SHA256:JlIGiQLPyQ2RHTH3a2oVlb20Xkh9Glr8DUF4YTXHJxM

View file

@ -140,14 +140,30 @@ Rules are objects with two fields:
### Transformers ### Transformers
#### Capitalize #### Capitalize
```json
{
"Capitalize": {}
}
```
Transforms string fields into Capital Case. Transforms string fields into Capital Case.
#### Choice #### Choice
```json
{
"Choice": {
"choices": [
"A",
"B",
"C"
]
}
}
```
Only accepts a pre-defined list of acceptable values and rejects the rest. Only accepts a pre-defined list of acceptable values and rejects the rest.
#### Date #### Date