alishaaaqil commented on PR #4335: URL: https://github.com/apache/incubator-kie-kogito-runtimes/pull/4335#issuecomment-4980172784
@martinweiler replying to your comment The issue is that by the time updatePartially() is called, the information about whether a field was omitted from the JSON or explicitly provided as null has already been lost. Both cases have become plain Java null values when the model is converted to a map. If we simply remove the null filter here, the map contains both omitted fields and explicitly null fields, so update() would clear all omitted fields as well. In effect, PATCH would start behaving like a full replace (PUT) for any omitted variable. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
