swagger-api/swagger-codegen

CSharp Import mapping

Open

#4483 aperta il 3 gen 2017

Vedi su GitHub
 (4 commenti) (0 reazioni) (0 assegnatari)HTML (5474 fork)batch import
Client: C-SharpEnhancement: FeatureServer: C-Sharphelp wanted

Metriche repository

Star
 (12.701 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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.

Guida contributor