Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

Commit

Permalink
Add missing works to openapi.json
Browse files Browse the repository at this point in the history
Signed-off-by: Moti Asayag <masayag@redhat.com>
  • Loading branch information
masayag authored and openshift-merge-robot committed May 10, 2023
1 parent 1edf021 commit d50b579
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions workflow-service/generated/openapi/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -839,6 +839,12 @@
"type" : {
"type" : "string",
"enum" : [ "TASK", "WORKFLOW" ]
},
"works" : {
"type" : "array",
"items" : {
"$ref" : "#/components/schemas/WorkStatusResponseDTO"
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ public class WorkFlowResponseDTO {

private String workFlowName;

@JsonInclude(JsonInclude.Include.NON_EMPTY)
private WorkStatus workStatus;

private String startDate;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -46,6 +47,7 @@ public class WorkStatusResponseDTO {

private WorkStatus status;

@JsonProperty("works")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<WorkStatusResponseDTO> works;

Expand Down

0 comments on commit d50b579

Please sign in to comment.