What is the recomanded approach to Yaml Validation Exception?

YamlValidationException: Failed to validate 'C:\Users\hp\3D Objects\Desktop\TELE\chatbot_rasa\domain.yml'. Please make sure the file is correct and all mandatory parameters are specified. Here are the errors found during validation:
  in C:\Users\hp\3D Objects\Desktop\TELE\chatbot_rasa\domain.yml:8:
      Value '[ordereddict([('content_type', ordereddict([('type', 'text')]))])]' is not a dict. Value path: '/slots'

Welcome to the forum :slight_smile:

Please read How to ask a great question and try asking again. Help us help you.

First: Did you read the error? It says your domain.yml is invalid. Please send it so we can check it.

domain.yml

This is the domain.yml file. Kindly help me to solve this issue.

You did not properly format the domain, specifically for slots as the error mentioned:

slots:
  - content_type:
      type: text 

should be

slots:
  content_type:
    type: text 

as shown in the docs.

Thank you for the help. My error got cleared