swagger-api/swagger-codegen

CSharp Import mapping

Open

#4 483 ouverte le 3 janv. 2017

Voir sur GitHub
 (4 commentaires) (0 réactions) (0 assignés)HTML (5 474 forks)batch import
Client: C-SharpEnhancement: FeatureServer: C-Sharphelp wanted

Métriques du dépôt

Stars
 (12 701 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

Description

I submitted #4405 a little while ago with the main aim to allow a derived generator to add .net project references into the packages.config and .csproj files. I just noticed today that the nancyfx generator has an import mapping feature added in c734a216. This solves the same problem of appending dependencies as I was attempting to solve with #4405, however I needed the feature in the csharp client sdk not the nancyfx server stub.

This brings me to two questions:

  1. which method of import mapping is preferred (#4405 or c734a216)

  2. shouldn't the preferred import mapping method be available to all .net generators while keeping the generators DRY as possible? If c734a216 is preferred then should the implementation code be moved to the AbstractCSharpGenerator?

Swagger-codegen version

curent master branch

Swagger declaration file content or url

N/A

Command line used for generation

N/A

Steps to reproduce

N/A

Related issues

N/A

Suggest a Fix

I am willing to do the PRs is necessary to implement whatever is decided. If #4405 is not the preferred method, i will close it.

Guide contributeur