Skip to content

Commit e16cbad

Browse files
committed
fix: map labels from operations response
1 parent 39d2f4b commit e16cbad

File tree

1 file changed

+6
-1
lines changed
  • src/main/kotlin/com/ctrlhub/core/governance/schemes/workorders/operations/response

1 file changed

+6
-1
lines changed

src/main/kotlin/com/ctrlhub/core/governance/schemes/workorders/operations/response/Operation.kt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package com.ctrlhub.core.governance.schemes.workorders.operations.response
22

33
import com.ctrlhub.core.api.Assignable
4+
import com.ctrlhub.core.governance.response.Label
45
import com.fasterxml.jackson.annotation.JsonCreator
56
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
67
import com.fasterxml.jackson.annotation.JsonProperty
@@ -26,6 +27,9 @@ class Operation @JsonCreator constructor(
2627
@JsonProperty("aborted") var aborted: Boolean = false,
2728
@JsonProperty("cancelled") var cancelled: Boolean = false,
2829

30+
@JsonProperty("labels")
31+
var labels: List<Label> = emptyList(),
32+
2933
@Relationship("assignees")
3034
var assignees: java.util.List<Assignable>? = null
3135
) {
@@ -40,6 +44,7 @@ class Operation @JsonCreator constructor(
4044
usrns = emptyList(),
4145
completed = false,
4246
aborted = false,
43-
cancelled = false
47+
cancelled = false,
48+
labels = emptyList()
4449
)
4550
}

0 commit comments

Comments
 (0)