Update `FormValidationAction` to replace `-` with `_` in slot name
@@ -716,7 +716,7 @@ class FormValidationAction(Action, ABC):
slots: Dict[Text, Any] = tracker.slots_to_validate()
for slot_name, slot_value in slots.items():
- function_name = f"validate_{slot_name}"
+ function_name = f"validate_{slot_name.replace('-','_')}"
validate_func = getattr(self, function_name, None)
if not validate_func:
