YAML 验证器
验证 YAML 语法,使用一致的缩进格式化,并转换为 JSON。对配置文件很有帮助。
Note: This validator supports YAML 1.1 specification. Multi-document YAML files will only parse the first document.
YAML - 技术详情
YAML is a human-readable data serialization format commonly used for configuration files. It uses indentation for structure and supports comments, making it more readable than JSON.
命令行替代方案
# Validate YAML with yamllint pip install yamllint yamllint config.yaml # Convert YAML to JSON with yq yq -o json config.yaml