From fc5cd4d1836a9fafe5247c7a433823daa6ff353c Mon Sep 17 00:00:00 2001 From: Yuksel Beyti Date: Fri, 11 Oct 2024 09:43:12 +0200 Subject: [PATCH] Correct user keywords example code --- docs/guide/user-keywords.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guide/user-keywords.md b/docs/guide/user-keywords.md index bf88e50fd2..4fc63a2284 100644 --- a/docs/guide/user-keywords.md +++ b/docs/guide/user-keywords.md @@ -39,7 +39,7 @@ ajv.addKeyword({ keyword: "range", type: "number", schemaType: "array", - implements: "exclusiveRange", + implements: ["exclusiveRange"], compile: ([min, max], parentSchema) => parentSchema.exclusiveRange === true ? (data) => data > min && data < max