ory / sdk

The place where ORY's SDKs are being auto-generated
Apache License 2.0
137 stars 85 forks source link

fix: update OpenAPI Generator to 6.1.0 for dotnet to support Blazor WebAssembly #300

Closed sbward closed 4 months ago

sbward commented 9 months ago

Related Issue or Design Document

299

Checklist

Further comments

.NET Blazor WebAssembly projects must use HttpClient for web requests, however Ory SDK is using a version of OpenAPI Generator (5.4.1) which generates code using RestSharp 106.13.0, which is does not use HttpClient.

Using RestSharp 107+ fixes the issue, and OpenAPI Generator adopts a recent enough version of RestSharp (108.0.3) in version 6.1.0.

RestSharp 107 was a breaking change which drops support for .NET 4.5 (which is no longer supported by Microsoft). For more details see: https://github.com/restsharp/RestSharp/releases/tag/107.0.0

aeneasr commented 4 months ago

Upgraded to 7.4.0 on master :)