-
Notifications
You must be signed in to change notification settings - Fork 189
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
Added functionality to add customConverters. #1886
Added functionality to add customConverters. #1886
Conversation
newConverters.add(new IntegerToEnumConverterFactory(getObjectMapper())); | ||
newConverters.add(new StringToEnumConverterFactory(getObjectMapper())); | ||
newConverters.add(new BooleanToEnumConverterFactory(getObjectMapper())); | ||
List<Object> newConverters = additionalConverters(); |
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.
Thank you for submitting the pull request.
Just leave the newConverters as-is, then instead of calling the new additionalConverters() here, call
registerAdditionalConverters(newConverters)
But rename registerAdditionalConverters to additionalConverters().
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.
Sure
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.
Changes are Done @mikereiche
Added functionality to register custom converters in the list + cleaned up the code a little and.
Function name changed and restored to old implementation
30bfcf4
to
2c876e5
Compare
* Added functionality to add customConverters. Added functionality to register custom converters in the list + cleaned up the code a little and. * Review chages. Function name changed and restored to old implementation * Documentation Changes.
* Added functionality to add customConverters. Added functionality to register custom converters in the list + cleaned up the code a little and. * Review chages. Function name changed and restored to old implementation * Documentation Changes.
* Added functionality to add customConverters. Added functionality to register custom converters in the list + cleaned up the code a little and. * Review chages. Function name changed and restored to old implementation * Documentation Changes.
Added functionality to register custom converters in the list + cleaned up the code a little. Let me know if I have to add test cases for this. Not added yet as the change was small. Fixes #1876.