Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android Codegenerator generates import statement for APIs without models #3956

Open
TiJac opened this issue Oct 9, 2016 · 1 comment
Open

Comments

@TiJac
Copy link

TiJac commented Oct 9, 2016

Description

Android Codegenerator generates import statement for APIs without models. This results in the compiler not to be able to resolve the term "Model" in
import io.swagger.client.model.*;

Swagger-codegen version

Swagger version: 2.2.1, tagged zip downloaded and installed by maven on windows

Swagger declaration file content or url

Any file that doesnt produce any models

Command line used for generation

java -jar ../swagger-codegen-2.2.1/modules/swagger-codegen-cli/target/swagger-codegen-cli.jar generate -i >URL to declaration file< -l android

Steps to reproduce

Generate the code - done

Related issues

nothing found. sorry

Suggest a Fix

the import statement should be omittet if there are no models

@wing328
Copy link
Contributor

wing328 commented Oct 9, 2016

@TiJac thanks for reporting the issue. As a workaround, please define a dummy model for the time being while we're working on a fix.

@wing328 wing328 added this to the v2.2.2 milestone Oct 9, 2016
@wing328 wing328 modified the milestones: v2.2.2, Future Feb 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants