From fba5b514a449d29dcaf8ce706ea0b3cea9b585ce Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Wed, 4 Dec 2024 12:53:40 +0100 Subject: [PATCH] Update readme.md --- readme.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/readme.md b/readme.md index 63f33a0..df311f1 100644 --- a/readme.md +++ b/readme.md @@ -101,9 +101,10 @@ config.set('foo', '1'); **Note:** The `default` value will be overwritten by the `defaults` option if set. #### rootSchema + Type: `object` -Top-level properties for the schema. Requires a `schema` option to be provided, and cannot contain a `properties` field. +Top-level properties for the schema. Requires the `schema` option to be specified, and cannot contain a `properties` field. Example: @@ -120,9 +121,10 @@ const store = new Conf({ ``` #### ajvOptions + Type: `object` -Options to pass to AJV. Requires a `schema` option to be provided. +Options passed to AJV. Requires the `schema` option to be specified. Example: @@ -136,8 +138,8 @@ const store = new Conf({ additionalProperties: false }, ajvOptions: { - removeAdditional: true, - }, + removeAdditional: true + } }); ```