Specify YAML schemas as Python objects #7977
Labels
area:rasa-oss 🎡
Anything related to the open source Rasa framework
area:rasa-oss/training-data
Issues focused around Rasa training data (stories, NLU, domain, etc.)
type:enhancement ✨
Additions of new features or changes to existing ones, should be doable in a single PR
Description of Problem: This is a followup from #7970 . Currently all our YAML schemas which we use to validate YAML files are defined in files. This means that we have to load and parse the schema files everytime we are are validating something. This not necessary, makes the code of the function harder to read and slows down the validation.
Overview of the Solution: Pass in Python objects to
validate_yaml_schema
instead of file names.Definition of Done:
validate_yaml_schema
expects a Python dictionary instead of a path to a schemavalidate_yaml_schema
is either deprecated (as it's inshared
) or it was double checked with Rasa X that it is safe to remove.The text was updated successfully, but these errors were encountered: