I know that I can assert if format is proper JSON, and multiple logic checking around JSON output itself. Can I do the same for a YAML file?
If not, how would I go about