Module

health.validators.config

Configuration validator wrapper.

Integrates the existing ConfigValidator into the health check system.

Classes

ConfigValidatorWrapper
Wrapper for config validation. Note: Config validation happens at load time, so by the time we get…
3

Wrapper for config validation.

Note: Config validation happens at load time, so by the time we get to health checks, the config has already been validated. This validator confirms that validation occurred and reports any config-related concerns.

Inherits from BaseValidator

Methods 1

validate
Validate configuration.
2 list[CheckResult]
def validate(self, site: Site, build_context: BuildContext | Any | None = None) -> list[CheckResult]

Validate configuration.

Parameters 2
site Site
build_context BuildContext | Any | None
Returns

list[CheckResult]

Internal Methods 2
_check_essential_fields
Check that essential config fields are present.
1 list[CheckResult]
def _check_essential_fields(self, config: dict[str, Any]) -> list[CheckResult]

Check that essential config fields are present.

Parameters 1
config dict[str, Any]
Returns

list[CheckResult]

_check_common_issues
Check for common configuration issues.
1 list[CheckResult]
def _check_common_issues(self, config: dict[str, Any]) -> list[CheckResult]

Check for common configuration issues.

Parameters 1
config dict[str, Any]
Returns

list[CheckResult]