Skip to content

fix: tolerate malformed gmail array config#331

Open
HwangJohn wants to merge 1 commit into
langchain-ai:mainfrom
HwangJohn:fix/gmail-config-array-normalization
Open

fix: tolerate malformed gmail array config#331
HwangJohn wants to merge 1 commit into
langchain-ai:mainfrom
HwangJohn:fix/gmail-config-array-normalization

Conversation

@HwangJohn

Copy link
Copy Markdown
Contributor

Summary

  • Treat Gmail labelIds and metadataHeaders as untrusted config values.
  • Ignore malformed non-array values instead of throwing during query parameter normalization.
  • Add a regression test that stubs Gmail fetch and verifies malformed values are omitted.

Testing

  • corepack pnpm exec prettier --write src/connectors/sources/gmail.ts test/connector-config-overrides.test.ts
  • corepack pnpm exec vitest run test/connector-config-overrides.test.ts
  • corepack pnpm run typecheck

@HwangJohn
HwangJohn marked this pull request as ready for review July 14, 2026 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant