diff --git a/api/openapi.yml b/api/openapi.yml index ad52fc95..0f377e68 100644 --- a/api/openapi.yml +++ b/api/openapi.yml @@ -195,14 +195,11 @@ paths: required: - processId - ttl - - recv properties: processId: type: string ttl: type: integer - recv: - type: object responses: 200: description: Operation deduplicated, promise fetched successfully diff --git a/pkg/client/v1/v1.go b/pkg/client/v1/v1.go index 068a20af..2dcefcfa 100644 --- a/pkg/client/v1/v1.go +++ b/pkg/client/v1/v1.go @@ -253,9 +253,8 @@ type CreatePromiseAndTaskJSONBody struct { Timeout int64 `json:"timeout"` } `json:"promise"` Task struct { - ProcessId string `json:"processId"` - Recv map[string]interface{} `json:"recv"` - Ttl int `json:"ttl"` + ProcessId string `json:"processId"` + Ttl int `json:"ttl"` } `json:"task"` }