From 2e8a3f5836b5c60fc982d87691bd49b57b158ec8 Mon Sep 17 00:00:00 2001 From: xuelianhan007 Date: Thu, 21 Nov 2024 15:20:30 +0800 Subject: [PATCH] rename from name to kind in MappingTypeEnum --- .../kraken/operator/core/enums/MappingTypeEnum.java | 2 +- .../gateway/runner/MappingMatrixCheckerActionRunner.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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);