crp.config_schema¶
Auto-generated reference for the crp.config_schema subpackage.
config_schema¶
crp.config_schema ¶
JSON Schema and validation for the Unified Configuration (SPEC-037 §4).
Provides a programmatic schema so that crp.config.yaml can be validated before runtime, and so that IDEs can offer autocomplete. Validation is lenient on additional properties to preserve forward compatibility.
validate_config(data) ¶
Validate a parsed config dict against the unified schema.
Performs recursive type, enum, and range checks. Additional properties are allowed for forward compatibility.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data | dict[str, Any] | Parsed config dict (e.g. from YAML/JSON). | required |
Returns:
| Type | Description |
|---|---|
list[str] | A list of human-readable error messages. An empty list means valid. |