swagger-api / swagger-api/swagger-codegen

.NET Core: Generate Autorest compatible methods from operationId

Open
#10,122 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Mustache
Stars
17.8k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

Hi,

I've run into the issue, referenced here: https://github.com/swagger-api/swagger-codegen/issues/5657

I use a mixture of .NET Core WebApi services and .NET Full Framework frontends using the AutoRest generator in Visual Studio.

How do I configure Nuget package Swashbuckle.AspNetCore.SwaggerGen in a way that it uses the controller name + function in the operationId?

Originally posted by @wing328 in https://github.com/swagger-api/swagger-codegen/issues/5657#issuecomment-302377146

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 tracing how Swashbuckle.AspNetCore.SwaggerGen produces operationId values for .NET Core WebApi controllers, then compare the result with the controller-name and function-name format expected by AutoRest. Done means the generated definition uses that operationId format and works with the described AutoRest workflow.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.