Skip to main content

validate_compound_sets

Function validate_compound_sets 

Source
pub fn validate_compound_sets(
    sets: Option<IndexMap<String, Vec<String>>>,
    bibliography: &Bibliography,
) -> Result<Option<IndexMap<String, Vec<String>>>, ProcessorError>
Expand description

Validate optional compound sets against the loaded bibliography.

Validation rules:

  • Every member ID must exist in bibliography.
  • A member ID must not appear more than once in a single set.
  • A member ID must not appear across multiple sets.

ยงErrors

Returns an error when a compound set references an unknown ID or reuses the same member within or across sets.