swagger-api/swagger-codegen

CSharp Import mapping

开放

#4,483 创建于 2017年1月3日

 (4 条评论) (0 个反应) (0 位负责人)HTML (5,474 个派生)batch import
Client: C-SharpEnhancement: FeatureServer: C-Sharphelp wanted

仓库指标

星标
 (12,701 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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.

贡献者指南