diff --git a/src/main/java/de/tum/in/www1/artemis/web/rest/dto/ParticipationDTO.java b/src/main/java/de/tum/in/www1/artemis/web/rest/dto/ParticipationDTO.java index 5cb67ae781fa..5775e47fcb1f 100644 --- a/src/main/java/de/tum/in/www1/artemis/web/rest/dto/ParticipationDTO.java +++ b/src/main/java/de/tum/in/www1/artemis/web/rest/dto/ParticipationDTO.java @@ -1,7 +1,10 @@ package de.tum.in.www1.artemis.web.rest.dto; +import com.fasterxml.jackson.annotation.JsonInclude; + import de.tum.in.www1.artemis.domain.participation.Participation; +@JsonInclude(JsonInclude.Include.NON_EMPTY) public record ParticipationDTO(Long id, boolean testRun, String type) { public static ParticipationDTO of(Participation participation) {