Skip to content

Commit 4ca86d2

Browse files
Update README.md (#62)
Fixes parenthesis in example Co-authored-by: Jason Ian Green <[email protected]>
1 parent ce0a626 commit 4ca86d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ addFormats(ajv, ["date", "time"])
9595
**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:
9696

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

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

0 commit comments

Comments
 (0)