Sanitize an arbitrary user-provided config object.
Each key is checked against its expected type; mismatched values are
dropped with a logger warning so the caller knows something they wrote was
ignored. Unknown keys are also dropped (defends against typos and stale
docs).
Sanitize an arbitrary user-provided config object.
Each key is checked against its expected type; mismatched values are dropped with a logger warning so the caller knows something they wrote was ignored. Unknown keys are also dropped (defends against typos and stale docs).