diff --git a/irs-models/src/main/java/org/eclipse/tractusx/irs/component/RegisterBatchOrder.java b/irs-models/src/main/java/org/eclipse/tractusx/irs/component/RegisterBatchOrder.java index 8617dc210e..fdebc9041e 100644 --- a/irs-models/src/main/java/org/eclipse/tractusx/irs/component/RegisterBatchOrder.java +++ b/irs-models/src/main/java/org/eclipse/tractusx/irs/component/RegisterBatchOrder.java @@ -90,7 +90,7 @@ public class RegisterBatchOrder { @Schema(description = "BoM Lifecycle of the result tree.", implementation = BomLifecycle.class) private BomLifecycle bomLifecycle; - @ArraySchema(arraySchema = @Schema(description = "List of aspect names that will be collected if \\ flag is set to true.", example = "urn:samm:io.catenax.single_level_bom_as_built:2.0.0#SingleLevelBomAsBuilt", + @ArraySchema(schema = @Schema(description = "List of aspect names that will be collected if \\ flag is set to true.", example = "urn:samm:io.catenax.single_level_bom_as_built:2.0.0#SingleLevelBomAsBuilt", implementation = String.class, pattern = ASPECT_MODEL_REGEX), maxItems = Integer.MAX_VALUE) private List<@Pattern(regexp = ASPECT_MODEL_REGEX) String> aspects; diff --git a/irs-models/src/main/java/org/eclipse/tractusx/irs/component/RegisterBpnInvestigationJob.java b/irs-models/src/main/java/org/eclipse/tractusx/irs/component/RegisterBpnInvestigationJob.java index f765410fce..7d66c465af 100644 --- a/irs-models/src/main/java/org/eclipse/tractusx/irs/component/RegisterBpnInvestigationJob.java +++ b/irs-models/src/main/java/org/eclipse/tractusx/irs/component/RegisterBpnInvestigationJob.java @@ -57,7 +57,7 @@ public class RegisterBpnInvestigationJob { private PartChainIdentificationKey key; @NotEmpty - @ArraySchema(arraySchema = @Schema(description = "Array of BPNS numbers.", example = "BPNS000000000DDD", + @ArraySchema(schema = @Schema(description = "Array of BPNS numbers.", example = "BPNS000000000DDD", implementation = String.class, pattern = BPN_REGEX), maxItems = Integer.MAX_VALUE) private List<@Pattern(regexp = BPN_REGEX) String> incidentBPNSs; diff --git a/irs-models/src/main/java/org/eclipse/tractusx/irs/component/RegisterJob.java b/irs-models/src/main/java/org/eclipse/tractusx/irs/component/RegisterJob.java index a6edfecda2..12737e4ea6 100644 --- a/irs-models/src/main/java/org/eclipse/tractusx/irs/component/RegisterJob.java +++ b/irs-models/src/main/java/org/eclipse/tractusx/irs/component/RegisterJob.java @@ -64,7 +64,7 @@ public class RegisterJob { @Schema(description = "BoM Lifecycle of the result tree.", implementation = BomLifecycle.class) private BomLifecycle bomLifecycle; - @ArraySchema(arraySchema = @Schema(description = "List of aspect names that will be collected if \\ flag is set to true.", example = "urn:samm:io.catenax.single_level_bom_as_built:2.0.0#SingleLevelBomAsBuilt", + @ArraySchema(schema = @Schema(description = "List of aspect names that will be collected if \\ flag is set to true.", example = "urn:samm:io.catenax.single_level_bom_as_built:2.0.0#SingleLevelBomAsBuilt", implementation = String.class, pattern = ASPECT_MODEL_REGEX), maxItems = Integer.MAX_VALUE) private List<@Pattern(regexp = ASPECT_MODEL_REGEX) String> aspects;