diff --git a/internal/controller/http/command_test.go b/internal/controller/http/command_test.go index cf111ead4..fcc5b00bd 100644 --- a/internal/controller/http/command_test.go +++ b/internal/controller/http/command_test.go @@ -305,7 +305,7 @@ func TestRestController_GetCommand_ReturnEvent(t *testing.T) { require.NoError(t, err) query := req.URL.Query() - query.Add("ds-returnevent", "no") + query.Add("ds-returnevent", common.ValueFalse) req.URL.RawQuery = query.Encode() // Act recorder := httptest.NewRecorder() diff --git a/openapi/v2/device-sdk.yaml b/openapi/v2/device-sdk.yaml index 729d183d7..3c8b114b4 100644 --- a/openapi/v2/device-sdk.yaml +++ b/openapi/v2/device-sdk.yaml @@ -1095,21 +1095,21 @@ paths: schema: type: string enum: - - yes - - no - default: no - example: yes - description: "If set to yes, a successful GET will result in an event being pushed to the EdgeX system" + - true + - false + default: false + example: true + description: "If set to true, a successful GET will result in an event being pushed to the EdgeX system" - in: query name: ds-returnevent schema: type: string enum: - - yes - - no - default: yes - example: no - description: "If set to no, there will be no Event returned in the http response" + - true + - false + default: true + example: false + description: "If set to false, there will be no Event returned in the http response" responses: '200': description: String as returned by the device/sensor through the device service.