Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Fixes parenthesis in example
  • Loading branch information
lmammino authored May 2, 2022
1 parent 4dd6544 commit 8657d33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ addFormats(ajv, ["date", "time"])
**Please note**: when ajv encounters an undefined format it throws exception (unless ajv instance was configured with `strict: false` option). To allow specific undefined formats they have to be passed to ajv instance via `formats` option with `true` value:

```javascript
const ajv = new Ajv((formats: {date: true, time: true})) // to ignore "date" and "time" formats in schemas.
const ajv = new Ajv({formats: {date: true, time: true}}) // to ignore "date" and "time" formats in schemas.
```

2. Format validation mode (default is `"full"`) with optional list of format names and `keywords` option to add additional format comparison keywords:
Expand Down

0 comments on commit 8657d33

Please sign in to comment.