upstart-commerce / sbt-openapi-generator

SBT plugin for openapi-generator
Apache License 2.0
6 stars 3 forks source link

system properties do not accept non-map values #5

Closed jwgcooke closed 4 years ago

jwgcooke commented 4 years ago

The current system properties that may need to be set include "models" which is not a map key/value, just a string. (i.e. -Dmodels) and I do not see a way to address this in the current map structure

YanDoroshenko commented 4 years ago

System properties is a map. -Dmodels syntax supported by the openapi-generator-cli is a shortcut for -Dmodels="", this substitution happens in an untyped and non-transparent manner inside the OpenAPI generator. In the SBT plugin you have to specify "$key" -> "" in the system properties map to achieve the same result.