Skip to content

validateRawGthConfig

validateRawGthConfig(raw, options?): RawConfigValidationResult

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/config/schema.ts:1575

Validate a freshly-loaded raw config object against rawGthConfigSchema and report the outcome as data (a pure function — no displayWarning/exit). Mirrors the loader’s policy: a removed pre-2.0 shape (a top-level command key or a deprecated *Provider* name) is a HARD failure that names the fix, unknown top-level keys warn but do not fail, and a genuine type mismatch on a known field fails with a path-scoped message.

Read-only: findDeprecatedConfigIssues, findUnknownTopLevelKeys and safeParse never mutate raw, so no defensive copy is needed.

Record<string, unknown>

RawConfigValidationOptions

RawConfigValidationResult