diff --git a/docs/schema.json b/docs/schema.json index 3e1d62b..f194aee 100644 --- a/docs/schema.json +++ b/docs/schema.json @@ -31,7 +31,7 @@ "properties": { "ignore": { "type": "array", - "minitems": 1, + "minItems": 1, "items": { "type": "string" } @@ -237,4 +237,4 @@ } } } -} \ No newline at end of file +} diff --git a/src/config.test.ts b/src/config.test.ts index ca7e838..021cd9c 100644 --- a/src/config.test.ts +++ b/src/config.test.ts @@ -83,7 +83,7 @@ test("should throw for invalid regex pattern", async () => { [Error: configuration is invalid: [ { "keyword": "required", - "dataPath": ".rules['foo']", + "dataPath": "/rules/foo", "schemaPath": "#/properties/rules/additionalProperties/required", "params": { "missingProperty": "level" @@ -92,7 +92,7 @@ test("should throw for invalid regex pattern", async () => { }, { "keyword": "pattern", - "dataPath": ".rules['foo'].regex[0]", + "dataPath": "/rules/foo/regex/0", "schemaPath": "#/definitions/regex/items/pattern", "params": { "pattern": "^/.+/[giu]*$" @@ -120,7 +120,7 @@ test("should throw for empty regex array", async () => { [Error: configuration is invalid: [ { "keyword": "minItems", - "dataPath": ".rules['foo'].regex", + "dataPath": "/rules/foo/regex", "schemaPath": "#/definitions/regex/minItems", "params": { "limit": 1 @@ -218,7 +218,7 @@ test("should throw for invalid flags", async () => { [Error: configuration is invalid: [ { "keyword": "pattern", - "dataPath": ".rules['foo'].regex[0]", + "dataPath": "/rules/foo/regex/0", "schemaPath": "#/definitions/regex/items/pattern", "params": { "pattern": "^/.+/[giu]*$" diff --git a/src/schema.ts b/src/schema.ts index 3cc0fdb..6a1972c 100644 --- a/src/schema.ts +++ b/src/schema.ts @@ -66,7 +66,7 @@ export const schema = { properties: { ignore: { type: "array", - minitems: 1, + minItems: 1, items: { type: "string" }, }, ignoreDefaults: {