Translate extension is using romaricdrigon/metayaml for YAML files, though those are not used on Wikimedia sites.
I might consider adopting the chosen solution if option "Direct support for validating PHP objects/arrays" is chosen and it is flexible enough.