Replies: 1 comment 2 replies
-
This almost sounds like a regression, or a breaking change at least (that users suddenly need to explicitly omit |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Prior to 6.6 an unintended consequence of the UnmatchedFieldTypeModule was that null values were suppressed from serialization - even if the pojo lacked a JsonInclude annotation.
This change https://github.com/fabric8io/kubernetes-client/pull/5028/files#diff-6c29389b01c29298ef063e303aac679b95bf2f65273f327f58dbbc5b627221a8R77 preserved the nullSerializer and thus the expected Jackson behavior
If a user has omitted the JsonInclude annotations, they may now run into errors with some operations in 6.6 - such as patch or put with messages like 'Invalid value: "null": spec.events[0] in body must be of type object: "null"'
I'm not entirely clear on when via the crd an explicit null is not allowed - this seems to occur even in places with generated crds that lack the NotNull annotation.
So the questions here are:
@manusa @metacosm @andreaTP
Beta Was this translation helpful? Give feedback.
All reactions