Skip to content

Commit 9f86b1f

Browse files
valentinEmpytwoseat
authored andcommitted
Fix Metadata serialization (serialize null values)
1 parent b051170 commit 9f86b1f

File tree

1 file changed

+3
-0
lines changed
  • cloudfoundry-client/src/main/java/org/cloudfoundry/client/v3

1 file changed

+3
-0
lines changed

cloudfoundry-client/src/main/java/org/cloudfoundry/client/v3/_Metadata.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
package org.cloudfoundry.client.v3;
1818

19+
import com.fasterxml.jackson.annotation.JsonInclude;
1920
import com.fasterxml.jackson.annotation.JsonProperty;
2021
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
2122
import org.cloudfoundry.AllowNulls;
@@ -35,6 +36,7 @@ abstract class _Metadata {
3536
* The metadata annotations
3637
*/
3738
@JsonProperty("annotations")
39+
@JsonInclude
3840
@AllowNulls
3941
@Nullable
4042
abstract Map<String, String> getAnnotations();
@@ -43,6 +45,7 @@ abstract class _Metadata {
4345
* The metadata labels
4446
*/
4547
@JsonProperty("labels")
48+
@JsonInclude
4649
@AllowNulls
4750
@Nullable
4851
abstract Map<String, String> getLabels();

0 commit comments

Comments
 (0)