Skip to content

Conversation

@reverentgeek
Copy link
Collaborator

Summary

  • Update validateInteractionUid in auth service to accept string | string[] parameter type
  • Update sanitizeForLogging in shared validation to accept string | string[] parameter type
  • Both functions now normalize array input to string before processing

Context

Express 5 with @types/express@5.x changed req.params values from string to string | string[]. This caused TypeScript build failures in the Docker build:

src/index.ts(446,46): error TS2345: Argument of type 'string | string[]' is not assignable to parameter of type 'string'.

Test plan

  • pnpm build passes
  • pnpm lint passes
  • Docker build succeeds

🤖 Generated with Claude Code

Express 5 with @types/express@5.x types req.params values as
string | string[] instead of just string. Update validateInteractionUid
and sanitizeForLogging to accept the union type and normalize to string.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@reverentgeek reverentgeek merged commit b9db6f5 into main Jan 27, 2026
3 checks passed
@reverentgeek reverentgeek deleted the dn-fix-express5-params-type branch January 27, 2026 16:06
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.

2 participants