cm_fidl_validator

Function validate_dynamic_offers

Source
pub fn validate_dynamic_offers<'a>(
    dynamic_children: Vec<(&'a str, &'a str)>,
    offers: &'a Vec<Offer>,
    decl: &'a Component,
) -> Result<(), ErrorList>
Expand description

Validates a collection of dynamic offers. Dynamic offers differ from static offers, in that

  1. a dynamic offer’s target field must be omitted;
  2. a dynamic offer’s source may be a dynamic child;
  3. since this crate isn’t really designed to handle dynamic children, we disable the checks that ensure that the source/target exist, and that the offers don’t introduce any cycles.