You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But this produced two build warnings. For projects that treat warnings as errors in CI, this will fail the build.
ApiClient.cs(400,17): warning CS0618: 'RestClientOptions.MaxTimeout' is obsolete: 'Use Timeout instead.'
ApiClient.cs(472,24): warning CS0618: 'RestClientExtensions.Deserialize<T>(IRestClient, RestResponse)' is obsolete: 'Please use the async overload with a cancellation token'
johnthagen
changed the title
[BUG] [csharp] Build warnings after PR to update to RestSharp 112.0.0
[BUG] [csharp] Obsolete build warnings after PR to update to RestSharp 112.0.0
Sep 4, 2024
Bug Report Checklist
Description
Due to vulnerabilities in the current generated RestSharp version
I tried to update 7.8.0 generated C# client to RestSharp 112.0.0 as shown in
But this produced two build warnings. For projects that treat warnings as errors in CI, this will fail the build.
The related upstream changes in RestSharp:
Here are where these obsolete methods are still used within
openapi-generator
main
branch:openapi-generator/modules/openapi-generator/src/main/resources/csharp/ApiClient.mustache
Line 458 in e914c40
openapi-generator/modules/openapi-generator/src/main/resources/csharp/ApiClient.mustache
Line 557 in e914c40
openapi-generator version
7.8.0 (with #19507 backport manually applied)
The text was updated successfully, but these errors were encountered: