Open Jinyi-Li opened 5 years ago
I am trying to generate a single Java client with multiple-version models. My models are like this:
configuration |_ myapi |_ v1 |_ my_fully_compliant.yaml |_ v2 |_ my_fully_compliant.yaml
The my_fully_compliant.yaml contains configurations for all data models I will be using, but in different versions.
What I want is to generate a single Java client package that contains:
my.api |_ v1 |_ client |_ MyClient.java |_ models |_ SomeDataModel.java |_ v2 |_ client |_ MyClient.java |_ models |_ SomeDataModel.java
So that I can do use different version of SomeDataModel in the MyClient when sending requests to the API!
SomeDataModel
MyClient
Swagger-codegen-cli = 3.x
language = spring openapi = 3.0.2
Suggest to enhance generating java client with multi-version models.
+1 ... any workarounds for the time being?
Description
I am trying to generate a single Java client with multiple-version models. My models are like this:
The my_fully_compliant.yaml contains configurations for all data models I will be using, but in different versions.
What I want is to generate a single Java client package that contains:
So that I can do use different version of
SomeDataModel
in theMyClient
when sending requests to the API!Swagger-codegen version
Swagger-codegen-cli = 3.x
Command line used for generation
language = spring openapi = 3.0.2
Suggest a fix/enhancement
Suggest to enhance generating java client with multi-version models.