Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

yaml validator python

# In Python, the pyyaml package provides yaml validation with 'yamllint'
# Here is a command to install the package:

pip install --user yamllint

# Using Python command, we can validate and print the validation logs to console:

python -c 'import yaml, sys; print(yaml.safe_load(sys.stdin))' < input.yaml
 
PREVIOUS NEXT
Tagged: #yaml #validator #python
ADD COMMENT
Topic
Name
3+7 =