swagger-api/swagger-codegen

Android Codegenerator generates import statement for APIs without models

Aperta

#3956 aperta il 9 ott 2016

 (1 commento) (0 reazioni) (0 assegnatari)HTML (5474 fork)batch import
Client: AndroidIssue: Bughelp wanted

Metriche repository

Star
 (12.701 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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

Guida contributor