swagger-api / swagger-api/swagger-codegen

C#: Add support for collectionFormats for query string parameters

Open
#2,789 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Currently, all collections, arrays and lists that are sent as a query string parameter get formatted as a comma separated list of strings and do not support any other collectionFormats. See here.

I've made some preliminary modifications here but do not currently have time to make all the changes to unit tests and samples for a proper pull request.

Related Java/Android Pull Request#893
Related Java Issue#484

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 with modules/swagger-codegen/src/main/resources/csharp/api.mustache around line 221 and review the preliminary changes linked in the issue. Then locate the related C# unit tests and samples, adding coverage for the supported collectionFormats and verifying generated query parameters use the selected format.

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
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.