Skip to content

Validate and type Diagram chat messages - #11

Merged
CodingFeng101 merged 1 commit into
CodingFeng101:mainfrom
patrick-star-10:improve/diagram-chat-message-types
Nov 30, 2026
Merged

CodingFeng101 merged 1 commit into
CodingFeng101:mainfrom
patrick-star-10:improve/diagram-chat-message-types

Conversation

@patrick-star-10

Copy link
Copy Markdown
Contributor

Summary

Closes #10.

  • Validate nested Diagram chat message parts and content before accessing them, returning HTTP 400 for malformed input.
  • Add types local to the Diagram chat route and preserve supported message formats and the existing streaming path.
  • Cover malformed nested inputs and existing message formats with tests.

Screenshots / Recordings

Not applicable; this changes no UI.

Verification

  • npm run check — passed
  • npm run lint — 0 errors, 321 warnings (down from 330)
  • npm test — 661 passed, 3 skipped
  • npm run build — passed

Checklist

  • I ran npm run check, npm run lint, npm test, and npm run build
  • I updated docs if needed (no documentation changes needed)
  • I added screenshots/recordings for UI changes (no UI changes)

@CodingFeng101
CodingFeng101 merged commit ea2e2a6 into CodingFeng101:main Nov 30, 2026
1 check passed
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.

[Feature]: Improve type safety in Diagram chat message normalization

2 participants