diff --git a/src/main/java/com/spotify/github/v3/orgs/requests/TeamCreate.java b/src/main/java/com/spotify/github/v3/orgs/requests/TeamCreate.java index 9c650c42..8e005cc2 100644 --- a/src/main/java/com/spotify/github/v3/orgs/requests/TeamCreate.java +++ b/src/main/java/com/spotify/github/v3/orgs/requests/TeamCreate.java @@ -19,6 +19,7 @@ */ package com.spotify.github.v3.orgs.requests; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.fasterxml.jackson.databind.annotation.JsonSerialize; @@ -33,6 +34,7 @@ @GithubStyle @JsonSerialize(as = ImmutableTeamCreate.class) @JsonDeserialize(as = ImmutableTeamCreate.class) +@JsonInclude(JsonInclude.Include.NON_NULL) public interface TeamCreate { /** The name of the team. */ @@ -51,10 +53,15 @@ public interface TeamCreate { Optional privacy(); /** - * The notification setting the team has chosen. The options are: notifications_enabled - team - * members receive notifications when the team is @mentioned. notifications_disabled - no one - * receives notifications. Default: notifications_enabled Can be one of: notifications_enabled, - * notifications_disabled + * The notification setting the team has chosen. The options are: + * + *

notifications_enabled - team members receive notifications when the team is @mentioned. + * + *

notifications_disabled - no one receives notifications. + * + *

Default: notifications_enabled + * + *

Can be one of: notifications_enabled, notifications_disabled */ @Nullable @Value.Default @@ -76,7 +83,7 @@ default List maintainers() { @Nullable @Value.Default @JsonProperty("repo_names") - default List repoNames(){ + default List repoNames() { return List.of(); } diff --git a/src/main/java/com/spotify/github/v3/orgs/requests/TeamUpdate.java b/src/main/java/com/spotify/github/v3/orgs/requests/TeamUpdate.java index d33851f8..e9359630 100644 --- a/src/main/java/com/spotify/github/v3/orgs/requests/TeamUpdate.java +++ b/src/main/java/com/spotify/github/v3/orgs/requests/TeamUpdate.java @@ -19,6 +19,7 @@ */ package com.spotify.github.v3.orgs.requests; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.fasterxml.jackson.databind.annotation.JsonSerialize; @@ -32,6 +33,7 @@ @GithubStyle @JsonSerialize(as = ImmutableTeamUpdate.class) @JsonDeserialize(as = ImmutableTeamUpdate.class) +@JsonInclude(JsonInclude.Include.NON_NULL) public interface TeamUpdate { /** The name of the team. */