fix: update OpenAPI Generator to 6.1.0 for dotnet to support Blazor WebAssembly #300
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Related Issue or Design Document
#299
Checklist
If this pull request addresses a security vulnerability,
I confirm that I got approval (please contact [email protected]) from the maintainers to push the changes.
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