Validating a yaml document in python

前端 未结 10 2201
谎友^
谎友^ 2020-12-24 04:24

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 th

10条回答
  •  轮回少年
    2020-12-24 05:10

    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.

提交回复
热议问题