package org.raddatz.familienarchiv.document.transcription;

import jakarta.validation.Valid;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.raddatz.familienarchiv.document.transcription.PersonMention;

import java.util.ArrayList;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class UpdateTranscriptionBlockDTO {
    private String text;
    private String label;

    @Valid
    @Builder.Default
    private List<PersonMention> mentionedPersons = new ArrayList<>();
}
