3.1.9.2.1. waf_tools.bms_config_model.parse_config_to_system
- waf_tools.bms_config_model.parse_config_to_system(config: dict) System
Parse a JSON configuration into a validated system configuration.
Maps the raw configuration dictionary (the content of
bms.json) to the typed dataclass hierarchy defined in this module. Validation is performed by the module-levelTypeAdapter. This is the entry point of this module and is called bywaf_tools.bms_config_validate.validate_bms_configuration().- Parameters:
config – Parsed JSON content of
bms.json, expected to contain the sectionsapplication,rtos,bms-slaveand optionallydebug.- Returns:
A fully populated and validated
Systeminstance.- Raises:
InvalidConfigurationError – If a required key is missing or a configuration value is unsupported or inconsistent. The message is produced by
_format_validation_error().