Apache 2.0 - Available on PyPI

sdcvalidator

SDC4 structural validator. XSD schema compliance, two-tier error classification, CLI tools, and XML/JSON conversion.

What It Does

sdcvalidator is the structural validation layer for SDC4 data instances. It validates XML instances against their XSD data model schemas - checking data types, required elements, constraints, and schema compliance.

Single-pass validation: instance in, pass/fail out. Deterministic. No interpretation.

Installation

pip install sdcvalidator

Features

  • 1. XSD Schema Validation - validates instances against SDC4 data model schemas
  • 2. Two-Tier Error Classification - structural errors vs semantic errors
  • 3. CLI Tools - command-line validation for batch processing
  • 4. XML/JSON Conversion - convert between formats while preserving semantics

Relationship to sdcgovernance

sdcvalidator and sdcgovernance are independent libraries. No hook, no chaining, no automatic invocation of one from the other.

sdcvalidator

Structural validation. Does the instance conform to the XSD schema? Are data types correct? Are required elements present? Single-pass. Instance in, pass/fail out.

sdcgovernance

Governance advisory. Does the workflow transition exist? Is the attestation valid? Is the provenance chain intact? Conversational. Agents query multiple times during a workflow.

Agents call each library independently, at different points in a workflow, in whatever order the operational logic requires.