Skip to content

v3.0.0 - Add validation backends and major (performance) refactor

Latest

Choose a tag to compare

@MichaelHallik MichaelHallik released this 15 Aug 15:44
· 201 commits to main since this release
dd1b78d

This major release introduces selectable validation backends, improves performance for large/error-heavy XML validation scenarios, and reorganizes internal modules for maintainability.

Breaking changes

  • Heavily reworked the internal package structure to facilitate the validation-backend/performance refactor:
    • Helper functionality was split into dedicated modules for paths, files, namespaces, schema management, schema resolution, validation and result reporting.
    • Code that imports non-keyword internals directly (although unlikely) may need to update import paths.

Added

  • Added selectable validation backends:
    • auto uses the fast lxml-backed validation path when possible and falls back to xmlschema where needed.
    • lxml forces lxml-backed validation.
    • xmlschema preserves the richer xmlschema-backed validation path.
  • Added validation backend selection at library import time, keyword-call time and through a dedicated Robot Framework keyword.
  • Added convenience keywords for inspecting and changing the active validation backend.
  • Added generated benchmark reports under docs/benchmarks/.
  • Added scenario-level benchmark comparison reports for both lxml and xmlschema.
  • Added backend comparison reports for comparing lxml and xmlschema validation behavior.

Changed

  • Improved validation performance for large XML files and error-heavy scenarios by introducing the lxml-backed validation path.
  • Added caching for compiled lxml schemas in the schema manager.
  • Refactored validation orchestration into smaller, more focused source modules and classes.
  • Split validation internals into focused modules for paths, files, namespaces, schema management, schema resolution, validation execution and result reporting.
  • Reorganized unit tests so test modules map directly to the source modules they cover.
  • Extended unit and integration coverage for backend selection, validation behavior and refactored internals.
  • Improved README structure and added section on use cases for this library.
  • Updated README sections on: project structure, validation backends and benchmark reports.

Verified

  • Published and verified on TestPyPI and PyPI.
  • Unit and integration tests pass against both the TestPyPI and PyPI installation.