From d50b5799cfa97175ce9147a2a1857a3d2dd3a497 Mon Sep 17 00:00:00 2001 From: Moti Asayag Date: Tue, 9 May 2023 18:14:45 +0300 Subject: [PATCH] Add missing works to openapi.json Signed-off-by: Moti Asayag --- workflow-service/generated/openapi/openapi.json | 6 ++++++ .../parodos/workflow/execution/dto/WorkFlowResponseDTO.java | 1 - .../workflow/execution/dto/WorkStatusResponseDTO.java | 2 ++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/workflow-service/generated/openapi/openapi.json b/workflow-service/generated/openapi/openapi.json index 557abdf1c..da95d69f8 100644 --- a/workflow-service/generated/openapi/openapi.json +++ b/workflow-service/generated/openapi/openapi.json @@ -839,6 +839,12 @@ "type" : { "type" : "string", "enum" : [ "TASK", "WORKFLOW" ] + }, + "works" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/WorkStatusResponseDTO" + } } } } diff --git a/workflow-service/src/main/java/com/redhat/parodos/workflow/execution/dto/WorkFlowResponseDTO.java b/workflow-service/src/main/java/com/redhat/parodos/workflow/execution/dto/WorkFlowResponseDTO.java index 5417c7d9b..71ef04211 100644 --- a/workflow-service/src/main/java/com/redhat/parodos/workflow/execution/dto/WorkFlowResponseDTO.java +++ b/workflow-service/src/main/java/com/redhat/parodos/workflow/execution/dto/WorkFlowResponseDTO.java @@ -44,7 +44,6 @@ public class WorkFlowResponseDTO { private String workFlowName; - @JsonInclude(JsonInclude.Include.NON_EMPTY) private WorkStatus workStatus; private String startDate; diff --git a/workflow-service/src/main/java/com/redhat/parodos/workflow/execution/dto/WorkStatusResponseDTO.java b/workflow-service/src/main/java/com/redhat/parodos/workflow/execution/dto/WorkStatusResponseDTO.java index dc55689ed..9cffd39cd 100644 --- a/workflow-service/src/main/java/com/redhat/parodos/workflow/execution/dto/WorkStatusResponseDTO.java +++ b/workflow-service/src/main/java/com/redhat/parodos/workflow/execution/dto/WorkStatusResponseDTO.java @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.redhat.parodos.workflow.enums.WorkType; import com.redhat.parodos.workflow.execution.entity.WorkFlowExecution; import com.redhat.parodos.workflows.work.WorkStatus; @@ -46,6 +47,7 @@ public class WorkStatusResponseDTO { private WorkStatus status; + @JsonProperty("works") @JsonInclude(JsonInclude.Include.NON_EMPTY) private List works;