X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=enrichment-coordinator-service%2Fsrc%2Fmain%2Fjava%2Forg%2Foransc%2Fenrichment%2Fcontrollers%2Fconsumer%2FConsumerEiJobStatus.java;fp=enrichment-coordinator-service%2Fsrc%2Fmain%2Fjava%2Forg%2Foransc%2Fenrichment%2Fcontrollers%2Fconsumer%2FConsumerEiJobStatus.java;h=87a69bb48c287b1735fe0e48673680a9825c3071;hb=c5ea745a563f8bae0c0c3de3649a943e167f01cc;hp=60752ec2d01ab25a83cc59bf504813858c55bb02;hpb=366e36aa247ed4c5d1b95437bcd0798c9d945231;p=nonrtric.git diff --git a/enrichment-coordinator-service/src/main/java/org/oransc/enrichment/controllers/consumer/ConsumerEiJobStatus.java b/enrichment-coordinator-service/src/main/java/org/oransc/enrichment/controllers/consumer/ConsumerEiJobStatus.java index 60752ec2..87a69bb4 100644 --- a/enrichment-coordinator-service/src/main/java/org/oransc/enrichment/controllers/consumer/ConsumerEiJobStatus.java +++ b/enrichment-coordinator-service/src/main/java/org/oransc/enrichment/controllers/consumer/ConsumerEiJobStatus.java @@ -23,17 +23,16 @@ package org.oransc.enrichment.controllers.consumer; import com.fasterxml.jackson.annotation.JsonProperty; import com.google.gson.annotations.SerializedName; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import io.swagger.v3.oas.annotations.media.Schema; import org.immutables.gson.Gson; @Gson.TypeAdapters -@ApiModel(value = "EiJobStatusObject", description = "Status for an EI job") +@Schema(name = "EiJobStatusObject", description = "Status for an EI job") public class ConsumerEiJobStatus { @Gson.TypeAdapters - @ApiModel(value = "EiJobStatusValues", description = "Allowed values for EI job status") + @Schema(name = "EiJobStatusValues", description = "Allowed values for EI job status") public enum EiJobStatusValues { ENABLED, DISABLED } @@ -42,7 +41,7 @@ public class ConsumerEiJobStatus { + "ENABLED: the A1-EI producer is able to deliver EI result for the EI job\n" // + "DISABLED: the A1-EI producer is unable to deliver EI result for the EI job"; - @ApiModelProperty(value = OPERATIONAL_STATE_DESCRIPTION, name = "eiJobStatus", required = true) + @Schema(name = "eiJobStatus", description = OPERATIONAL_STATE_DESCRIPTION, required = true) @SerializedName("eiJobStatus") @JsonProperty(value = "eiJobStatus", required = true) public EiJobStatusValues state;