swagger-api / swagger-api/swagger-codegen

[csharp] partial classes for csharp-dotnet2

Open
#10,541 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

Description

I'd like to augment the Model classes generated from csharp-dotnet2 with extra attributes.
Since the generated classes are not partial, is not possible for me to do so.
I see the classes generated from csharp are partial.
Is there something hindering marking csharp-dotnet2 as partial as well?

Swagger-codegen version

https://editor.swagger.io/

Swagger declaration file content or url
Steps to reproduce
Related issues/PRs
Suggest a fix/enhancement

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

Compare the csharp-dotnet2 generation templates with the csharp templates to find where generated model classes are declared. Confirm the generated C# model output and mark the csharp-dotnet2 classes as partial, then verify that consumers can augment them with extra attributes.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
tooling
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.