OpenAPITools / OpenAPITools/openapi-generator

[REQ][CSHARP][GENERICHOST] Replace deprecated Microsoft.Extensions.Http.Polly dependency

Open
#22,069 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Enhancement: Feature
Dominant language
Java
Stars
26.8k
Forks
7.7k
PR merge metrics
PR metrics pending

Description

Is your feature request related to a problem? Please describe.

Microsoft announced that Microsoft.Extensions.Http.Polly is deprecated.

Describe the solution you'd like

We should adopt one of the supported packages instead (Microsoft.Extensions.Resilience and Microsoft.Extensions.Http.Resilience). I have not looked into the exact work to do this quite yet, but I am happy to work on this. I think we'll need to keep the polly dependency around for people generating on .net versions older than .NET 6 but we'll see.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the C# GENERICHOST generator configuration and every use of Microsoft.Extensions.Http.Polly. Check the supported Microsoft.Extensions.Resilience and Microsoft.Extensions.Http.Resilience packages against the required older .NET versions. Done means the deprecated dependency is replaced where supported without breaking generation for older targets.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
tooling
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.