package org.raddatz.familienarchiv.timeline;

import io.swagger.v3.oas.annotations.media.Schema;

import java.util.List;

/** One year's worth of timeline entries, sorted by {@link TimelineService#WITHIN_BAND_ORDER}. */
public record TimelineYearDTO(
        @Schema(requiredMode = Schema.RequiredMode.REQUIRED) int year,
        @Schema(requiredMode = Schema.RequiredMode.REQUIRED) List<TimelineEntryDTO> entries
) {
}
