Skip to content

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.

ParameterType
rawunknown
filestring

object

NameType
configTaskConfig
warningsstring[]