swagger-api / swagger-api/swagger-codegen
.NET Core: Generate Autorest compatible methods from operationId
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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