From affe83ac194d1c947d49c7a74ce5fee6267ef8e4 Mon Sep 17 00:00:00 2001 From: Alexander Hansen Date: Mon, 26 Sep 2022 08:33:46 +0200 Subject: [PATCH 1/2] Add AssignedLabels to NodeResponse --- node.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/node.go b/node.go index 1bea5cc9..5868122d 100644 --- a/node.go +++ b/node.go @@ -35,10 +35,11 @@ type Node struct { } type NodeResponse struct { - Class string `json:"_class"` - Actions []interface{} `json:"actions"` - DisplayName string `json:"displayName"` - Executors []struct { + Class string `json:"_class"` + Actions []interface{} `json:"actions"` + AssignedLabels []interface{} `json:"assignedLabels"` + DisplayName string `json:"displayName"` + Executors []struct { CurrentExecutable struct { Number int `json:"number"` URL string `json:"url"` From 98c36d01ceeef19c1bbbeb05fa9764707513933d Mon Sep 17 00:00:00 2001 From: Alexander Hansen Date: Mon, 26 Sep 2022 09:23:29 +0200 Subject: [PATCH 2/2] Add AssignedLabels to NodeResponse --- node.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/node.go b/node.go index 5868122d..0259059f 100644 --- a/node.go +++ b/node.go @@ -37,9 +37,11 @@ type Node struct { type NodeResponse struct { Class string `json:"_class"` Actions []interface{} `json:"actions"` - AssignedLabels []interface{} `json:"assignedLabels"` - DisplayName string `json:"displayName"` - Executors []struct { + AssignedLabels []struct { + Name string `json:"name"` + } `json:"assignedLabels"` + DisplayName string `json:"displayName"` + Executors []struct { CurrentExecutable struct { Number int `json:"number"` URL string `json:"url"`