Skip to content

Schema validation (JSON Schema / XSD)

json_xml_schema - Column-level - JSON and XML

Validates documents against a JSON Schema or XSD.

Parameters

Parameter Type Default Required Description
format str 'json' No Whether the column holds JSON or XML documents. One of: json, xml.
schema_uri str none No Optional URL or path to the schema, for reference.
threshold_percent float 0.0 No Fail if the percentage of invalid documents exceeds this.

YAML example

checks:
  - name: example_json_xml_schema
    check_type: json_xml_schema
    table_name: schema.table
    column_name: example_column
    parameters:
      format: json
      threshold_percent: 0.0

See YAML check format for the full field reference.