Skip to content

report all XSD & Schematron errors in one run, simplify validation API#95

Merged
vagenas merged 1 commit into
mainfrom
simplify-validation-api
Jun 16, 2026
Merged

report all XSD & Schematron errors in one run, simplify validation API#95
vagenas merged 1 commit into
mainfrom
simplify-validation-api

Conversation

@vagenas

@vagenas vagenas commented Jun 16, 2026

Copy link
Copy Markdown
Member
  • Run Schematron even when XSD fails so callers see every issue at once.
  • ValidationError now only exposes xsd_errors and schematron_errors; low-level XSD and Schematron helpers return error lists instead of (bool, list) tuples.

BREAKING CHANGE: ValidationError no longer exposes file, xsd_valid, or schematron_valid; use xsd_errors and schematron_errors instead. CLI JSON output no longer includes a top-level file field.

- Run Schematron even when XSD fails so callers see every issue at once.
- `ValidationError` now only exposes `xsd_errors` and `schematron_errors`; low-level XSD and Schematron helpers return error lists instead of `(bool, list)` tuples.

BREAKING CHANGE: `ValidationError` no longer exposes `file`, `xsd_valid`, or `schematron_valid`; use `xsd_errors` and `schematron_errors` instead. CLI JSON output no longer includes a top-level `file` field.

Signed-off-by: Panos Vagenas <pva@zurich.ibm.com>

@PeterStaar-IBM PeterStaar-IBM left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@vagenas vagenas merged commit 601b476 into main Jun 16, 2026
10 checks passed
@vagenas vagenas deleted the simplify-validation-api branch June 16, 2026 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants