assets_guardian.core.config.validator

Functions

validate_config(raw_config,Β template[,Β prefix])

Recursively verifies that the raw configuration matches the template.

assets_guardian.core.config.validator.validate_config(raw_config: dict[str, Any], template: dict[str, Any], prefix: str = '') None[source]

Recursively verifies that the raw configuration matches the template.

Parameters:
  • raw_config – Dictionary containing raw configuration data.

  • template – Dictionary containing the configuration template.

  • prefix – Prefix for nested keys.

Raises:
  • TypeError – If the raw configuration value does not match the expected dict type.

  • KeyError – If a mandatory configuration key is missing, or if an integration key does not match any plugin available in Assets Guardian.