diff --git a/src/main/java/de/tum/cit/aet/artemis/buildagent/dto/BuildAgentDTO.java b/src/main/java/de/tum/cit/aet/artemis/buildagent/dto/BuildAgentDTO.java index 2ffa0f2daa61..dc68b89e18ab 100644 --- a/src/main/java/de/tum/cit/aet/artemis/buildagent/dto/BuildAgentDTO.java +++ b/src/main/java/de/tum/cit/aet/artemis/buildagent/dto/BuildAgentDTO.java @@ -3,6 +3,13 @@ import java.io.Serial; import java.io.Serializable; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; + +// NOTE: this data structure is used in shared code between core and build agent nodes. Changing it requires that the shared data structures in Hazelcast (or potentially Redis) +// in the future are migrated or cleared. Changes should be communicated in release notes as potentially breaking changes. +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_EMPTY) public record BuildAgentDTO(String name, String memberAddress, String displayName) implements Serializable { @Serial