diff --git a/src/main/java/formflow/library/ValidationService.java b/src/main/java/formflow/library/ValidationService.java index ba22f923..a9eb0b49 100644 --- a/src/main/java/formflow/library/ValidationService.java +++ b/src/main/java/formflow/library/ValidationService.java @@ -166,6 +166,7 @@ private Map> performFieldLevelValidation(String flowName, F public static Map> getRequiredInputs(String flowName) { if (requiredInputs.isEmpty()) { + log.info("getRequiredInputs - requiredInputs is empty"); Class flowClass; try { @@ -180,12 +181,16 @@ public static Map> getRequiredInputs(String flowNam if (Arrays.stream(field.getAnnotations()) .anyMatch(annotation -> requiredAnnotationsList.contains(annotation.annotationType().getName()))) { if (requiredInputs.containsKey(flowName)) { + log.info("getRequiredInputs - requiredInputs." + flowName + " exists"); requiredInputs.get(flowName).put(field.getName(), true); } else { + log.info("getRequiredInputs - requiredInputs." + flowName + " is empty"); requiredInputs.put(flowName, new ConcurrentHashMap<>(Map.of(field.getName(), true))); } } } + } else { + log.info("getRequiredInputs - requiredInputs is not empty"); } return requiredInputs; }