A practical issue with YAML: a schema is not documentation
utcc.utoronto.ca
utcc.utoronto.ca
Jason doesn't allow comments, Xml is too verbose and lacks a zero-depth later (aka a properties file), properties files can't do arrays or hierarchies or complex inline stuff, and aren't well standardized, and TOML is ugly.
I'm not some yaml zealot, it's not a perfect format, but ... I've seen nothing better.
If you want to play around with it, I made NestedTextTo (nt2 on PyPI), for CLI conversion between NestedText and YAML, TOML, or JSON, with a pretty cool (IMO) way to cast value types along the way.
https://nestedtext.org/en/stable/ (not my project)
https://github.com/AndydeCleyre/nestedtextto (my project)
The thing I frequently see is systems where there is a source file in a schema IDL and one comment per field as the "documentation". This is something, but for most non-trivial data there are things that should be documented at a higher level than the field.
https://json-schema.org/understanding-json-schema/reference/...
Bottom line: You need a better schema definition and validation tool/framework. It is not YAML's fault.