One possible reason: display values in this context are not allowed in a string ...
Here is an incorrect YAML example (user: should not contain any value in fact, because it contains the children of some_key and some_other_key)
customer: Customer user: User some_key: value some_other_key: value 2
It is not a trivial task to find such a problem, especially if you have a huge YAML file.
I created a fairly simple regular expression to detect such things. I tested it in RubyMine
^(\s+)['"\w]+:\s?['"\w]+.*\n\1\s\s
Be careful! This does not work correctly with special characters such as å ø æ etc.
Let me know in the comments if this works for you :)
Serge Seletskyy Feb 20 '14 at 15:36 2014-02-20 15:36
source share