ignore empty files

This commit is contained in:
tree🌴 2023-10-07 21:06:05 +02:00
parent 7547b25600
commit 5f9c2f23f7

View file

@ -31,6 +31,11 @@ for (const col of Object.keys(w3pd.data)) {
const validator = ajv.compile(schemas[matrix[col]]);
for (const item of w3pd.data[col]) {
if(Object.keys(item).length === 1) {
continue
}
Deno.test(`${col}/${item.id}`, () => {
if (!validator(item)) {
throw validator.errors;