Skip to content

[Milky] Fix wrong incoming type#109

Closed
kengwang wants to merge 1 commit into
LagrangeDev:mainfrom
kengwang:kengwang/fix-milky-file-incoming
Closed

[Milky] Fix wrong incoming type#109
kengwang wants to merge 1 commit into
LagrangeDev:mainfrom
kengwang:kengwang/fix-milky-file-incoming

Conversation

@kengwang
Copy link
Copy Markdown
Contributor

Motivation

The polymorphic json type resolve missmatch the Milky document.

What's been done

  1. Add file resolve to FileIncomingSegment
  2. Rename face_incoming to face accoring to https://milky.ntqqrev.org/struct/IncomingSegment#type-face

Copilot AI review requested due to automatic review settings April 10, 2026 07:54
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR corrects Milky incoming-segment polymorphic JSON type resolution to match the Milky documentation, ensuring segments deserialize into the intended CLR types.

Changes:

  • Updated the FaceIncomingSegment discriminator from face_incoming to face.
  • Added a file discriminator mapping to FileIncomingSegment for incoming segments.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@NoirHare NoirHare closed this Apr 10, 2026
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.

3 participants