Like XML, there exist YAML Schema standards for validating not just the syntax of a string of YAML, but structure of the YAML as well. Unlike XML, it is not part of the YAML spec and there are multiple solutions such as https://metacpan.org/pod/Data::Rx and https://metacpan.org/pod/Kwalify It would be nice to user one of these schema implementations to validate the correctness of any given yaml bases system preference.