in internal/mode/chunk/chunk.go [88:98]
func decodeConnection[T any](connectionJSON string, adapterType AdapterType) (T, error) {
var result T
decoder := json.NewDecoder(strings.NewReader(connectionJSON))
decoder.DisallowUnknownFields()
if err := decoder.Decode(&result); err != nil {
return result, fmt.Errorf("failed to parse %s connection: %w", adapterType, err)
}
return result, nil
}