diff --git a/docs/swagger/swagger.yaml b/docs/swagger/swagger.yaml index 1aa9e191b..ff978ec5b 100644 --- a/docs/swagger/swagger.yaml +++ b/docs/swagger/swagger.yaml @@ -26737,6 +26737,9 @@ paths: description: The time the operation was created format: date-time type: string + detail: + description: Additional detailed information about an operation + provided by the connector error: description: Any error reported back from the plugin for this operation @@ -35719,6 +35722,9 @@ paths: description: The time the operation was created format: date-time type: string + detail: + description: Additional detailed information about an operation + provided by the connector error: description: Any error reported back from the plugin for this operation diff --git a/internal/apiserver/route_get_op_by_id.go b/internal/apiserver/route_get_op_by_id.go index 4c61d7930..46a6408af 100644 --- a/internal/apiserver/route_get_op_by_id.go +++ b/internal/apiserver/route_get_op_by_id.go @@ -1,4 +1,4 @@ -// Copyright © 2022 Kaleido, Inc. +// Copyright © 2023 Kaleido, Inc. // // SPDX-License-Identifier: Apache-2.0 // @@ -37,7 +37,7 @@ var getOpByID = &ffapi.Route{ }, Description: coremsgs.APIEndpointsGetOpByID, JSONInputValue: nil, - JSONOutputValue: func() interface{} { return &core.Operation{} }, + JSONOutputValue: func() interface{} { return &core.OperationWithDetail{} }, JSONOutputCodes: []int{http.StatusOK}, Extensions: &coreExtensions{ CoreJSONHandler: func(r *ffapi.APIRequest, cr *coreRequest) (output interface{}, err error) {