specification icon indicating copy to clipboard operation
specification copied to clipboard

Use dummy path parameter to avoid oneOf in `/auth/user` response for 2fa

Open VinyarionHyarmendacil opened this issue 9 months ago • 1 comments

VinyarionHyarmendacil avatar Mar 15 '25 02:03 VinyarionHyarmendacil

This doesnt work in the C# generator, I get:

VRChat.API.Client.ApiException: Unable to find a default constructor to use for type VRChat.API.Model.LoginFlow. Path 'acceptedPrivacyVersion', line 1, position 26.
   at VRChat.API.Client.CustomJsonCodec.Deserialize(RestResponse response, Type type) in C:\Users\jelle\Desktop\School\Projects\GeKut\vrchatapi-csharp\src\VRChat.API\Client\ApiClient.cs:line 146
   at VRChat.API.Client.CustomJsonCodec.Deserialize[T](RestResponse response) in C:\Users\jelle\Desktop\School\Projects\GeKut\vrchatapi-csharp\src\VRChat.API\Client\ApiClient.cs:line 87
   at RestSharp.RestClient.Deserialize[T](RestRequest request, RestResponse raw)

whether im logged in or not, it cant shape the response into either LoginFlow output

jellejurre avatar Mar 15 '25 11:03 jellejurre