Commit 35031017 authored by Christophe Benz's avatar Christophe Benz

Follow validata-validate API changes

parent aed08c41
......@@ -9,8 +9,6 @@ import ujson as json
from validata_validate import validate
from goodtables import Inspector
VALIDATA_MAX_ROWS = 100000
#
# MEMENTO: json.load(pkg_resources.resource_stream('validata_validate', 'spec.json'))
......@@ -100,11 +98,9 @@ class ValidatorHelper:
checks.append({check_conf['name']: check_conf['params']})
pre_checks_conf = c_checks.get('pre_checks')
inspector = Inspector(checks=checks, row_limit=VALIDATA_MAX_ROWS)
return validate(
source=source,
inspector=inspector,
schema=sc_info['schema'],
pre_checks_conf=pre_checks_conf,
checks=checks,
)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment