From 8657d336110900a31b4444937d6ec73f2a605cac Mon Sep 17 00:00:00 2001 From: Luciano Mammino Date: Mon, 2 May 2022 12:06:11 +0100 Subject: [PATCH] Update README.md Fixes parenthesis in example --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b4264cd..4150bcf 100644 --- a/README.md +++ b/README.md @@ -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: