Skip to content

Update writerfactory so enums actually work#4

Merged
RyoTune merged 1 commit intoRyoTune:mainfrom
TheBestAstroNOT:main
Feb 12, 2026
Merged

Update writerfactory so enums actually work#4
RyoTune merged 1 commit intoRyoTune:mainfrom
TheBestAstroNOT:main

Conversation

@TheBestAstroNOT
Copy link
Contributor

No description provided.

Copilot AI review requested due to automatic review settings January 3, 2026 12:25
Copy link

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 fixes enum handling in the ObjectWriters by adding an IsEnum check to the FieldWriterFactory. Previously, enum types were not being routed to PrimitiveFieldWriter, which has the necessary logic to handle enum values (both by name and by integer value).

Key Changes:

  • Added fieldType.IsEnum check to the condition for creating PrimitiveFieldWriter instances

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

@RyoTune RyoTune merged commit 7fdff2b into RyoTune:main Feb 12, 2026
6 checks 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.

3 participants