diff --git a/ckanext/datajson/blueprint.py b/ckanext/datajson/blueprint.py index 98ce9129..2217f18c 100644 --- a/ckanext/datajson/blueprint.py +++ b/ckanext/datajson/blueprint.py @@ -353,7 +353,7 @@ def validator(): if body: try: - do_validation(body, c.errors, {}) + do_validation(body['dataset'], c.errors, set()) except Exception as e: c.errors.append(("Internal Error", ["Something bad happened: " + str(e)])) if len(c.errors) == 0: