Error

"items" is 2-tuple, but minItems or maxItems/additionalItems are not specified

Solution

1. Diable the strictTuples. const ajv = new Ajv({ strictTuples: false }); 2.Set additionalItems, maxItems and minItems in your schema-pets json object.