Commit 1a9328c2 authored by Pierre Dittgen's avatar Pierre Dittgen
Browse files

Log error report (debug)

parent 8419470f
......@@ -390,7 +390,6 @@ def create_validata_ui_report(validata_core_report, schema_dict):
"""
report = copy.deepcopy(validata_core_report)
#open("err_validata_core_report.json", "wt", encoding="utf-8").write(json.dumps(report, indent=2, sort_keys=True, ensure_ascii=False))
# One table is enough
report['table'] = report['tables'][0]
......@@ -571,6 +570,9 @@ def validate(schema_instance: SchemaInstance, source: ValidataResource):
# Enhance validata_core_report
validata_report = create_validata_ui_report(validata_core_report, schema_instance.schema)
#open("err_validata_core_report.json", "wt", encoding="utf-8").write(json.dumps(validata_report, indent=2, sort_keys=True, ensure_ascii=False))
# Display report to the user
validator_form_url = compute_validation_form_url(schema_instance.request_parameters())
schema_info = compute_schema_info(schema_instance.schema, schema_instance.url)
......
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