-
-
Notifications
You must be signed in to change notification settings - Fork 203
Separate RequiredMappingStrategy configuration for enums #1591
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
Conversation
…bute.RequiredEnumMappingStrategy Resolve RequiredMappingStrategy for each enum mapping in the following order, fall back to the next one if the previous one is not set: 1.MapperRequiredMappingAttribute on the mapping method 2. MapperAttribute.RequiredEnumMappingStrategy 3. MapperDefaultsAttribute.RequiredEnumMappingStrategy 4. MapperAttribute.RequiredMappingStrategy 5. MapperDefaultsAttribute.RequiredMappingStrategy
latonz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this PR, I added my feedback.
latonz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the updates, two small feedback points...
latonz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added my feedback...
Co-authored-by: Lars <lars@riok.ch>
Separate RequiredMappingStrategy configuration for enums
Description
Add MapperAttribute.RequiredEnumMappingStrategy / MapperDefaultsAttribute.RequiredEnumMappingStrategy
Resolve RequiredMappingStrategy for each enum mapping in the following order, fall back to the next one if the previous one is not set:
Fixes #1590
Checklist