From 290e04261296d61f15df6bf456e065bf1a1cf473 Mon Sep 17 00:00:00 2001 From: Christophe Carvalho Vilas-Boas Date: Thu, 20 Oct 2022 12:38:32 +0200 Subject: [PATCH] fix: Sleep request fields are exclusive so both optional fixes #1042 --- src/requesthandler/RequestHandler_General.cpp | 4 ++-- src/requesthandler/RequestHandler_Outputs.cpp | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/requesthandler/RequestHandler_General.cpp b/src/requesthandler/RequestHandler_General.cpp index 2783b9e6..20d47742 100644 --- a/src/requesthandler/RequestHandler_General.cpp +++ b/src/requesthandler/RequestHandler_General.cpp @@ -311,8 +311,8 @@ RequestResult RequestHandler::TriggerHotkeyByKeySequence(const Request &request) /** * Sleeps for a time duration or number of frames. Only available in request batches with types `SERIAL_REALTIME` or `SERIAL_FRAME`. * - * @requestField sleepMillis | Number | Number of milliseconds to sleep for (if `SERIAL_REALTIME` mode) | >= 0, <= 50000 - * @requestField sleepFrames | Number | Number of frames to sleep for (if `SERIAL_FRAME` mode) | >= 0, <= 10000 + * @requestField ?sleepMillis | Number | Number of milliseconds to sleep for (if `SERIAL_REALTIME` mode) | >= 0, <= 50000 + * @requestField ?sleepFrames | Number | Number of frames to sleep for (if `SERIAL_FRAME` mode) | >= 0, <= 10000 * * @requestType Sleep * @complexity 2 diff --git a/src/requesthandler/RequestHandler_Outputs.cpp b/src/requesthandler/RequestHandler_Outputs.cpp index 87ab9164..45bca638 100644 --- a/src/requesthandler/RequestHandler_Outputs.cpp +++ b/src/requesthandler/RequestHandler_Outputs.cpp @@ -278,6 +278,8 @@ RequestResult RequestHandler::GetLastReplayBufferReplay(const Request &) /** * Gets the list of available outputs. + * + * @responseField outputs | Array | Array of outputs * * @requestType GetOutputList * @complexity 4