core
core copied to clipboard
Integrate Jackson Optional Mapper in ObjectMapper for Handling Optional Fields
Parent Issue
Problem Statement
Enhance the existing ObjectMapper code by integrating Jackson’s Optional Mapper to handle fields that may or may not be present in the JSON data.
Steps to Reproduce
- Create a content type with a WYSIWYG
- Add some html to the WYSIWYG
- Convert the WYSIWYG to a block field
- See the error in the log
https://gist.github.com/josemejias11/6fc25dfc713503d94addb1b673b75a01
Acceptance Criteria
The ObjectMapper should correctly handle JSON objects with optional fields, mapping them to Optional types in the application code.
dotCMS Version
24.06.26
Proposed Objective
Core Features
Proposed Priority
Priority 3 - Average
External Links... Slack Conversations, Support Tickets, Figma Designs, etc.
No response
Assumptions & Initiation Needs
No response
Quality Assurance Notes & Workarounds
Sub-Tasks & Estimates
No response