diff --git a/kraken-java-sdk/kraken-java-sdk-core/src/main/java/com/consoleconnect/kraken/operator/core/enums/MappingTypeEnum.java b/kraken-java-sdk/kraken-java-sdk-core/src/main/java/com/consoleconnect/kraken/operator/core/enums/MappingTypeEnum.java index 8a8eda84..9432347a 100644 --- a/kraken-java-sdk/kraken-java-sdk-core/src/main/java/com/consoleconnect/kraken/operator/core/enums/MappingTypeEnum.java +++ b/kraken-java-sdk/kraken-java-sdk-core/src/main/java/com/consoleconnect/kraken/operator/core/enums/MappingTypeEnum.java @@ -8,5 +8,5 @@ public enum MappingTypeEnum { ENUM("enum"), CUSTOMIZED_ENUM("customized_enum"); - private final String name; + private final String kind; } diff --git a/kraken-java-sdk/kraken-java-sdk-gateway/src/main/java/com/consoleconnect/kraken/operator/gateway/runner/MappingMatrixCheckerActionRunner.java b/kraken-java-sdk/kraken-java-sdk-gateway/src/main/java/com/consoleconnect/kraken/operator/gateway/runner/MappingMatrixCheckerActionRunner.java index bf617158..7c210a1d 100644 --- a/kraken-java-sdk/kraken-java-sdk-gateway/src/main/java/com/consoleconnect/kraken/operator/gateway/runner/MappingMatrixCheckerActionRunner.java +++ b/kraken-java-sdk/kraken-java-sdk-gateway/src/main/java/com/consoleconnect/kraken/operator/gateway/runner/MappingMatrixCheckerActionRunner.java @@ -217,8 +217,8 @@ public void checkRequestConstraints(String targetKey, Map inputs || ParamLocationEnum.HYBRID.name().equals(mapper.getTargetLocation())) { continue; } - if (MappingTypeEnum.ENUM.getName().equals(mapper.getSourceType()) - || MappingTypeEnum.CUSTOMIZED_ENUM.getName().equals(mapper.getSourceType())) { + if (MappingTypeEnum.ENUM.getKind().equals(mapper.getSourceType()) + || MappingTypeEnum.CUSTOMIZED_ENUM.getKind().equals(mapper.getSourceType())) { checkEnumValue(mapper.getSource(), mapper.getTarget(), inputs, mapper.getSourceValues()); } else if (mapper.getTarget() != null && !mapper.getTarget().contains("@{{")) { checkConstantValue(mapper.getSource(), mapper.getTarget(), inputs);