import io.swagger.v3.oas.annotations.media.ArraySchema;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import java.util.ArrayList;
import java.util.List;

import static io.swagger.v3.oas.annotations.media.Schema.RequiredMode.REQUIRED;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Grenzwerte {

    @Builder.Default
    @NotEmpty
    @ArraySchema(arraySchema = @Schema(description = "Die berechneten Grenzwerte", requiredMode = REQUIRED))
    private List<@Valid Grenzwerte> grenzwerte = new ArrayList<>();

} 