From 87a8047b76860e7e00b3615d864657daf826e87a Mon Sep 17 00:00:00 2001 From: Osama Salman Date: Wed, 20 Sep 2023 16:51:43 +0300 Subject: [PATCH] fix(generation): Use Uppercase Enum Values Use uppercase enum values --- .../com/expediagroup/sdk/generators/openapi/Discriminator.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generator/openapi/src/main/kotlin/com/expediagroup/sdk/generators/openapi/Discriminator.kt b/generator/openapi/src/main/kotlin/com/expediagroup/sdk/generators/openapi/Discriminator.kt index 641ec5d33..9db2803c9 100644 --- a/generator/openapi/src/main/kotlin/com/expediagroup/sdk/generators/openapi/Discriminator.kt +++ b/generator/openapi/src/main/kotlin/com/expediagroup/sdk/generators/openapi/Discriminator.kt @@ -27,7 +27,7 @@ internal fun getParentDiscriminator(model: CodegenModel): MutableList mappedModel.modelName.equals(model.classname) }!!.mappingName, + it.mappedModels.find { mappedModel -> mappedModel.modelName.equals(model.classname) }!!.mappingName.uppercase(), model.parentModel.name, variable.isEnum, variable.isString