What is the purpose of tilde character ~ in YAML?
The tilde is one of the ways the null value can be written. Most parsers also accept an empty value for null, and of course null, Null and NULL. These are defined in the first two lines of the regular expressions for the core schema tags in the YAML standard.