If a schema specifies the exact possible values of a data structure, we shouldn't have to also declare a series of other keywords which add no additional value.
Take this example:
const { validator } = require('.')
const validate = validator({ type: 'array', const: [1,2,3] }, { mode: 'strong' })
// Error: [requireValidation] items rule must be specified at #
If a schema specifies the exact possible values of a data structure, we shouldn't have to also declare a series of other keywords which add no additional value.
Take this example: