Skip to content

Commit

Permalink
Merge pull request #1370 from caub/patch-1
Browse files Browse the repository at this point in the history
fix range example typos
  • Loading branch information
epoberezkin authored Dec 27, 2020
2 parents 342b84d + 71ef1e0 commit 97bfa50
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 97bfa50

Please sign in to comment.