validateConfig
validateConfig(
raw,file):object
Validate a parsed JSON document against schema v1.
Throws ConfigError on a type violation; returns the recognized subset plus one warning per unknown key. The returned config holds ONLY known keys, which is why the write path never round-trips through this shape — see readRawConfigFile.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
raw | unknown |
file | string |
Returns
Section titled “Returns”object
| Name | Type |
|---|---|
config | TaskConfig |
warnings | string[] |