Merge pull request #875 from dnaka91/slotValue-response-type

docs: Adjust `slotValue` type to `Any`
This commit is contained in:
tt2468 2021-12-17 11:01:40 +07:00 committed by GitHub
commit d642654f49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,7 +28,7 @@ with this program. If not, see <https://www.gnu.org/licenses/>
* @requestField realm | String | The data realm to select. `OBS_WEBSOCKET_DATA_REALM_GLOBAL` or `OBS_WEBSOCKET_DATA_REALM_PROFILE`
* @requestField slotName | String | The name of the slot to retrieve data from
*
* @responseField slotValue | String | Value associated with the slot. `null` if not set
* @responseField slotValue | Any | Value associated with the slot. `null` if not set
*
* @requestType GetPersistentData
* @complexity 2
@ -407,7 +407,7 @@ RequestResult RequestHandler::SetProfileParameter(const Request& request)
} else {
return RequestResult::Error(RequestStatus::InvalidRequestFieldType, "The field `parameterValue` must be a string.");
}
return RequestResult::Success();
}