Skip to content

Commit

Permalink
docs: update readme to reflect ajv-pack usage
Browse files Browse the repository at this point in the history
  • Loading branch information
willfarrell committed Apr 26, 2018
1 parent 604c8cf commit 9416073
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,9 @@ This keyword allows a string to be modified before validation.

These keywords apply only to strings. If the data is not a string, the transform is skipped.

There is one limitation, due to how ajv is written, a stand alone string cannot be transformed. ie `data = 'a'; ajv.validate(schema, data);`
There are limitation due to how ajv is written:
- a stand alone string cannot be transformed. ie `data = 'a'; ajv.validate(schema, data);`
- currently cannot work with `ajv-pack`

**Supported options:**
- `trim`: remove whitespace from start and end
Expand Down

0 comments on commit 9416073

Please sign in to comment.