George D. Torres
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`sSamhita Alla
Eduardo Apolinario (eapolinario)
10/27/2022, 5:04 PMGeorge D. Torres
10/27/2022, 5:09 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).katrina
George D. Torres
11/10/2022, 7:31 PM