What version of Ajv are you using? Does the issue happen if you use the latest version?
6.12.4 (latest)
Ajv options object
JSON Schema
{ "type": "array", "items": false }
Sample data
Your code
const Ajv = require("ajv");
const ajv = new Ajv({ strictKeywords: true });
ajv.validate({ type: "array", items: false }, [1]);
console.log(ajv.errors);
Validation result, data AFTER validation, error messages
What results did you expect?
same validation error as when strictKeywords is false or "log"
[
{
"keyword": "false schema",
"dataPath": "[0]",
"schemaPath": "#/items/false schema",
"params": {},
"message": "boolean schema is false"
}
]
Are you going to resolve the issue?
Am I going to submit a PR? Not planning on it. Am I good with closing the issue after feedback? Yes.
What version of Ajv are you using? Does the issue happen if you use the latest version?
6.12.4 (latest)
Ajv options object
JSON Schema
{ "type": "array", "items": false }Sample data
[1]Your code
Validation result, data AFTER validation, error messages
What results did you expect?
same validation error as when
strictKeywordsisfalseor"log"[ { "keyword": "false schema", "dataPath": "[0]", "schemaPath": "#/items/false schema", "params": {}, "message": "boolean schema is false" } ]Are you going to resolve the issue?
Am I going to submit a PR? Not planning on it. Am I good with closing the issue after feedback? Yes.