swagger-api / swagger-codegen

swagger-codegen contains a template-driven engine to generate documentation, API clients and server stubs in different languages by parsing your OpenAPI / Swagger definition.
http://swagger.io
Apache License 2.0
16.8k stars 6.02k forks source link

[codegen, JAVA] Trying to generate mustache template variables but get full codegen output instead #8046

Open crhistianramirez opened 6 years ago

crhistianramirez commented 6 years ago
Description

I'm following the information here: https://github.com/swagger-api/swagger-codegen/wiki/Mustache-Template-Variables

Attempting to generate either the models or the operations will load the full codegen folder instead of a json file with variables as expected

its as if the -DdebugOperations or -DdebugModels flags are not being recognized

Swagger-codegen version

2.4.0 (master)

Command line used for generation

java -DdebugOperations -jar modules/swagger-codegen-cli/target/swagger-codegen-cli.jar generate -i http://petstore.swagger.io/v2/swagger.json -l csharp -o operations.json

Steps to reproduce
crhistianramirez commented 6 years ago

@wing328 I noticed you originally authored the instructions. Did the syntax for generating models and operations change?