File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -115,9 +115,16 @@ func formatListWorkflowsResponseBody(wf WorkflowStatus) listWorkflowsConductorRe
115115 }
116116
117117 // Copy optional fields
118- output .AuthenticatedUser = wf .AuthenticatedUser
119- output .AssumedRole = wf .AssumedRole
120- output .AuthenticatedRoles = wf .AuthenticatedRoles
118+ output .AuthenticatedUser = & wf .AuthenticatedUser
119+ output .AssumedRole = & wf .AssumedRole
120+ // Convert authenticated roles to JSON string if present
121+ if len (wf .AuthenticatedRoles ) > 0 {
122+ rolesJSON , err := json .Marshal (wf .AuthenticatedRoles )
123+ if err == nil {
124+ rolesStr := string (rolesJSON )
125+ output .AuthenticatedRoles = & rolesStr
126+ }
127+ }
121128
122129 // Convert input/output to JSON strings if present
123130 if wf .Input != nil {
You can’t perform that action at this time.
0 commit comments