swagger-api/swagger-codegen

[Regression] Import mappings not correctly handled

オープン

#2,248 opened on 2016/02/25

 (6 件のコメント) (0 件のリアクション) (0 人の担当者)HTML (5,474 件のフォーク)batch import
Issue: BugServer: Javahelp wanted

Repository metrics

Stars
 (12,701 個のスター)
PR merge metrics
 (PR metrics pending)

説明

I updated my Swagger Codegen project today and remake a build of a project using it to generate code (Java CXF).

I'm now facing an issue, using the "import mappings" feature. In my pom.xml, I specify:

<configOptions>
                                <sourceFolder>src/gen/java/main</sourceFolder>
                                <import-mappings>Event=foo.provided.Event</import-mappings>
                            </configOptions>

but in the generated code, the Event class used is not the foo.provided.Event. It's the generated one.

This was OK before my update (I can't remember when I made my last update before today).

コントリビューターガイド