Skip to main content

series_bindings.compare_series_validation_domains()

Compare each series’ bound cells with the workbook’s validations.

Usage

Source

series_bindings.compare_series_validation_domains(
    bindings, workbook, *, max_cells=DEFAULT_MAX_RANGE_CELLS
)

At most one finding per series; series with no validated domain cell, and from_workbook / constant series, produce none. The sidecar is never modified.

  • partial_coverage / mixed_rules / mixed_blank: validations do not cover the series uniformly; nothing is proposed.
  • domain_validation_conflict: the authored domain differs from the uniform workbook domain. Agreement is silent.
  • matches_value_map / value_map_side_mismatch / value_map_validation_conflict: an input.value_map series whose list equals the needles, equals the keys, or neither.
  • proposed_domain: no authored domain or map; the uniform workbook domain is offered for the author to copy.

Parameters

bindings: Mapping[str, Any]

Series bindings document.

workbook: Path | str

Workbook the sidecar describes.

max_cells: int = DEFAULT_MAX_RANGE_CELLS
Upper bound on cells per series data_range.