qecx.validate_qecx_file

qecx.validate_qecx_file(path)

Load a QECX file from disk and validate it.

Format detection is performed from the first four bytes of the file: PK\x03\x04 indicates a ZIP archive; anything else is treated as inline JSON. A leading UTF-8 BOM (\xEF\xBB\xBF) is stripped before detection, and the filename is never consulted.

Parameters:

path (str | Path) – Path to the file.

Returns:

All validation findings.

Return type:

list[ValidationError]