-
-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for enum name sources (EnumMemberAttribute and DescriptionAttribute) #1079
Comments
The enum mapping strategies are currently used to map from one enum to another enum. |
Yes, you're correct, I didn't think the |
We thought about allowing the Would be happy to accept a PR implementing this 😊 |
#1235 is asking for support of |
EnumMember
enables control of the names of the enumerations as they are serialized, e.g.from https://learn.microsoft.com/en-us/dotnet/api/system.runtime.serialization.enummemberattribute?view=net-8.0
It would be great if those annotations could be used to map to and from strings, e.g. by changing the mapping strategy
EnumMappingStrategy = EnumMappingStrategy.ByAnnotation
.The text was updated successfully, but these errors were encountered: