IMO using an XML schema (XSD) or DTD based validation is far superior then JSON schema.
If the data to be validated is not originaly of any JSON kind, then better convert the data to XML and validate it using XSD/DTD.
Edit: Solved. As @nikitah mentioned below, JSON Schema is totally sufficient for YAML.