swagger-api / swagger-api/swagger-codegen

[C#] Support enums in request parameters

Open
#3,579 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Client: C-Sharp Feature: Enum help wanted
Dominant language
Mustache
Stars
17.8k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

Description

This issue is similar to #1347, but for C# language. Currently enum types for request parameters in the swagger definition file are converted to strings in the generated C# Api classes.

Swagger-codegen version

v2.2.1

Related issues

#1347

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 reading related issue #1347 and tracing the C# generator path that produces Api classes from request parameters. Confirm how enum request parameters are represented in the generated output; done means those parameters retain their enum types instead of becoming strings.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.