adamant-balloon-31283
10/26/2022, 4:39 PM/api/v1/data/executions/{id}
with a execution id, the json response I get can't be Unmarshaled to the proper struct (located here). I'm especially having a hard time Unmarshaling `core.Literal`stall-lock-23197
high-accountant-32689
10/27/2022, 5:04 PMadamant-balloon-31283
10/27/2022, 5:09 PMadamant-balloon-31283
10/28/2022, 2:01 PM/api/v1/data/executions/{id}
(the raw json for that response is attached). Then I Unmarshal that into an admin.WorkflowExecutionGetDataResponse
(which appears to be the correct output model according to the swagger docs) using the following code:
data := admin.WorkflowExecutionGetDataResponse{}
err := json.Unmarshal(data_json, &data) // data_json is the raw response from flyte
if err != nil {
c.Data(status, "application/json", data_json) // return raw json
return
}
c.JSON(status, data) // return unmarshalled object as json
It does successfully Unmarshal, but the resulting unmarshaled object null
in all of the places the literals should be (see unmarshalled json attachment).acceptable-policeman-57188
acceptable-policeman-57188
adamant-balloon-31283
11/10/2022, 7:31 PM