swagger-api/swagger-codegen

[Regression] Import mappings not correctly handled

Open

#2248 aperta il 25 feb 2016

Vedi su GitHub
 (6 commenti) (0 reazioni) (0 assegnatari)HTML (5474 fork)batch import
Issue: BugServer: Javahelp wanted

Metriche repository

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

Descrizione

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

Guida contributor