It looks like you’re seeing examples from an older version of Rasa. Take a look at the new rasa docs for the latest version. Here is an example of a domain.yml file.
If you install the new version of rasa, you can use the command rasa init to create a complete working example which you can inspect and tweak as needed.