OpenAPITools / OpenAPITools/openapi-generator

[REQ][Csharp-Netcore] Refit Generator

Open
#10,657 2 comments 0 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

Someone pointed me at this neat little library:

https://github.com/reactiveui/refit

Its basically a csharp code generator that generates accessors as part of the build process. It doesn't support openapi but that is basically where we can come in.

I'm wondering whether it might be interesting to support a generator for it. I'm willing to give it a try anyway.

The advantage would be that there is no ApiClient to maintain, essentially this would boil down to generating api-accessor interfaces and model classes.

Any thoughts? @mandrean @frankyjuang @shibayan @Blackclaws @lucamazzanti @wing328 @devhl-labs

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

No files or tests are named. Start by reviewing the linked Refit project and OpenAPI Generator's generator entry points, then determine the required mapping from an OpenAPI description to Refit API-accessor interfaces and model classes. Done means a defined and implemented Refit generator with coverage for its generated output.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
api, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.