Open demtnt opened 5 years ago
👍 Thanks for opening this issue! 🏷 I have applied any labels matching special text in your issue.
The team will review the labels and make any necessary changes.
This is possibly affecting all generators, as model exclusion is done in DefaultGenerator
and setting -Dmodels=""
appears to not only prevent models from being written but also prevents them from being processed into the internal structures we use for API generation.
Description
I would like to generate spring server only API (with out model). And I have found out that generated V1Api.java interface have different content depending of presens system property -Dmodels=""
openapi-generator version
3.3.4
OpenAPI declaration file content
Command line used for generation
java -jar openapi-generator-cli.jar generate -g spring -Dapis="",supportingFiles="ApiUtil.java" --additional-properties sourceFolder=,interfaceOnly=true -i /path/to/my/yaml -v -o output_path or java -jar openapi-generator-cli.jar generate -g spring -Dapis="",supportingFiles="ApiUtil.java",models="" --additional-properties sourceFolder=,interfaceOnly=true -i /path/to/my/yaml -v -o output_path
Steps to reproduce
run 2 commands and compare method "methodGet" signature in V1Api.java
and