mirror of
https://github.com/web3privacy/explorer-data.git
synced 2024-10-15 12:06:26 +02:00
ignore empty files
This commit is contained in:
parent
7547b25600
commit
5f9c2f23f7
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue