WW-5352 Normalise parameter name

This commit is contained in:
Kusal Kithul-Godage
2024-01-18 21:24:36 +11:00
parent b50616942b
commit 71d77df3f3
@@ -366,8 +366,9 @@ public class ParametersInterceptor extends MethodFilterInterceptor {
int nestingIndex = indexOfAny(name, NESTING_CHARS_STR);
String rootProperty = nestingIndex == -1 ? name : name.substring(0, nestingIndex);
String normalisedRootProperty = Character.toLowerCase(rootProperty.charAt(0)) + rootProperty.substring(1);
return hasValidAnnotatedMember(rootProperty, action, paramDepth);
return hasValidAnnotatedMember(normalisedRootProperty, action, paramDepth);
}
/**