Config Utils

codestral_ros2_gen.utils.config_utils.validate_config_keys(config, section, required)[source]

Raise error if any required keys are missing in the given section of config.

Parameters:
  • config (Dict[str, Any]) – Configuration dictionary to inspect.

  • section (str) – The section name within the config to check.

  • required (Tuple[str, ...]) – Tuple of required keys that must exist in the section.

Raises:

RuntimeError – If section is missing or any required keys are not found.

Return type:

None