From 71ef1e09d3d5065d1da2e03a06f1bc18dff6f652 Mon Sep 17 00:00:00 2001 From: Cyril Auburtin Date: Sat, 26 Dec 2020 11:07:31 +0100 Subject: [PATCH] fix range example typos --- docs/keywords.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/keywords.md b/docs/keywords.md index 64aedf315..d8d3272f4 100644 --- a/docs/keywords.md +++ b/docs/keywords.md @@ -87,12 +87,12 @@ ajv.addKeyword({ const {schema, parentSchema, data} = cxt const [min, max] = schema const eq: Code = parentSchema.exclusiveRange ? _`=` : nil - gen.fail(_`${data} <${eq} ${min} || ${data} >${eq} ${max}`) + cxt.fail(_`${data} <${eq} ${min} || ${data} >${eq} ${max}`) }, metaSchema: { type: "array", items: [{type: "number"}, {type: "number"}], - minItems: 2 + minItems: 2, additionalItems: false, }, })