Skip to content

Commit

Permalink
rename from name to kind in MappingTypeEnum
Browse files Browse the repository at this point in the history
  • Loading branch information
xuelianhan007 committed Nov 21, 2024
1 parent e19cc40 commit 2e8a3f5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
public enum MappingTypeEnum {
ENUM("enum"),
CUSTOMIZED_ENUM("customized_enum");
private final String name;
private final String kind;
}
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,8 @@ public void checkRequestConstraints(String targetKey, Map<String, Object> 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);
Expand Down

0 comments on commit 2e8a3f5

Please sign in to comment.