Skip to content

Commit

Permalink
fix range example typos
Browse files Browse the repository at this point in the history
  • Loading branch information
caub committed Dec 26, 2020
1 parent 342b84d commit 71ef1e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/keywords.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
})
Expand Down

0 comments on commit 71ef1e0

Please sign in to comment.