Slot Mappings: Remove unnecessary checks in Validator.verify_slot_mappings()
#10233
Labels
area:rasa-oss/cli
Issues focused on the rasa command-line-interface
area:rasa-oss 🎡
Anything related to the open source Rasa framework
feature:3.0/slot-mappings
type:bug 🐛
Inconsistencies or issues which will cause an issue or problem for users or implementors.
Context: The newly added method
Validator.verify_slot_mappings
had originally 2 checks that don't make sense any more (would incorrectly causerasa data validate
to fail):if form_slots and slot.name not in form_slots
statement should be removed because it didn't take into account the case of dynamic slots requested dynamically by forms.if mapping.get("type") == str(SlotMapping.FROM_TRIGGER_INTENT) and slot.name not in all_required_slots
statement should be removed since we're recommending in the docs that any slots that are filled with info from a form trigger intent should have a mapping without conditions to prevent the form from re-asking for this slot again.Definition of Done:
The text was updated successfully, but these errors were encountered: