vrchatapi-python icon indicating copy to clipboard operation
vrchatapi-python copied to clipboard

Boolean parameters must be passed as lowercase strings (“true”/“false”) due to direct query param appending

Open Raifa21 opened this issue 7 months ago • 0 comments

Boolean parameters (like offline) need to be explicitly passed as lowercase strings "true" or "false" for them to work correctly. This seems to be due to how query parameters are appended in the generated code:

if local_var_params.get('offline') is not None:
    query_params.append(('offline', local_var_params['offline']))

(from friends_api) I've only confirmed this with the friends_api, but this should be the case for all boolean parameters.

Tested on 1.19.1.

Raifa21 avatar Apr 15 '25 04:04 Raifa21