We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d06ed32 commit 4dd54e9Copy full SHA for 4dd54e9
1 file changed
modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/KotlinClientCodegen.java
@@ -966,7 +966,7 @@ public ModelsMap postProcessModels(ModelsMap objs) {
966
@Override
967
public Map<String, ModelsMap> postProcessAllModels(Map<String, ModelsMap> objs) {
968
objs = super.postProcessAllModels(objs);
969
- if (getSerializationLibrary() == SERIALIZATION_LIBRARY_TYPE.kotlinx_serialization) {
+ if (getSerializationLibrary() == SERIALIZATION_LIBRARY_TYPE.kotlinx_serialization || getLibrary().equals(MULTIPLATFORM)) {
970
// The loop removes unneeded variables so commas are handled correctly in the related templates
971
for (Map.Entry<String, ModelsMap> modelsMap : objs.entrySet()) {
972
for (ModelMap mo : modelsMap.getValue().getModels()) {
0 commit comments