From 1cd0d7fcd813cced37101c0740eaa1b420705b01 Mon Sep 17 00:00:00 2001 From: Vincenzo Ingenito <54367888+vincenzo-ingenito@users.noreply.github.com> Date: Fri, 15 Mar 2024 14:55:52 +0100 Subject: [PATCH] Update PublicationMetadataReqDTO.java --- .../dispatcher/dto/request/PublicationMetadataReqDTO.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/it/finanze/sanita/fse2/ms/gtw/dispatcher/dto/request/PublicationMetadataReqDTO.java b/src/main/java/it/finanze/sanita/fse2/ms/gtw/dispatcher/dto/request/PublicationMetadataReqDTO.java index b47dc7a..785b465 100644 --- a/src/main/java/it/finanze/sanita/fse2/ms/gtw/dispatcher/dto/request/PublicationMetadataReqDTO.java +++ b/src/main/java/it/finanze/sanita/fse2/ms/gtw/dispatcher/dto/request/PublicationMetadataReqDTO.java @@ -22,6 +22,7 @@ import it.finanze.sanita.fse2.ms.gtw.dispatcher.enums.HealthcareFacilityEnum; import it.finanze.sanita.fse2.ms.gtw.dispatcher.enums.PracticeSettingCodeEnum; import it.finanze.sanita.fse2.ms.gtw.dispatcher.enums.TipoDocAltoLivEnum; +import it.finanze.sanita.fse2.ms.gtw.dispatcher.utility.ValidationUtility; import lombok.AllArgsConstructor; import lombok.Getter; import lombok.NoArgsConstructor; @@ -69,7 +70,9 @@ public class PublicationMetadataReqDTO { @ArraySchema(schema = @Schema(maxLength = 1000, description = "Descriptions")) private List descriptions; - @Schema(description = "Administrative") + @Schema(description = "Administrative request") + @Size(min = 0, max = 1000) + @ArraySchema(minItems = 0, maxItems = 1000, schema = @Schema(implementation = AdministrativeReqEnum.class)) private List administrativeRequest;