Is there a way to generate models that have a variable whose data type is Currency(java.util) with Swagger Codegen?
Note: I use Swagger Version 2.0 and Swagger Codegen Version 2.2.3
Is there a way to generate models that have a variable whose data type is Currency(java.util) with Swagger Codegen?
Note: I use Swagger Version 2.0 and Swagger Codegen Version 2.2.3
Copyright © 2021 Jogjafile Inc.
You can define a
Currency
object in your spec and then use--import-mappings
to avoid creating a model for it.The (partial) spec:
The command:
Or if you are using Maven, add this to the
pom.xml
: