swagger-api/swagger-codegen

[Regression] Import mappings not correctly handled

開放

#2,248 建立於 2016年2月25日

 (6 則留言) (0 個反應) (0 位負責人)HTML (5,474 個分叉)batch import
Issue: BugServer: Javahelp wanted

倉庫指標

星標
 (12,701 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

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).

貢獻者指南