One of the benefits of XML is being able to validate a document against an XSD. YAML doesn't have this feature, so how can I validate that the YAML document I open is in the format expected by my application?
A:
I'm not aware of a python solution. But there is a ruby schema validator for YAML called kwalify. You should be able to access it using subprocess if you don't come across a python library.
ars
2010-07-16 07:12:00
I'm really looking for a pythonic solution. This is always a last resort.
rioch
2010-07-16 07:34:50