OpenAPITools / OpenAPITools/openapi-generator

[REQ] CSHARP-NET6 Generate Server code in minimal API style

Open
#11,577 1 comment 1 reaction 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

Describe the solution you'd like

I would like this tool to generate controller code in .NET6 minimal API style and .NET6 style of minimal webhost.

Additional context

I was using this tool to generate .NET6 server code. However, this will generate controllers that inherit from the Controller base class which does not work with the minimal API style they introduced in NET6.

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 CSHARP-NET6 server generator and its generated controller output. Review how the current generator handles the .NET 6 web host and controller base class; done means it can generate a usable minimal API-style server and minimal web host without relying on Controller inheritance.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
api, backend, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.