Closed jayunit100 closed 6 years ago
We do YAML validation while parsing by utilizing the Kubernetes YAML parser/validator - https://github.com/koki/short/blob/master/parser/parser.go#L46
The output you pasted above is from Kuberenetes' YAML parser. It parses YAML and validates it by converting it to JSON and then to a map[string]interface{}
.
This is done so that both YAML and JSON are supported. More info here - https://github.com/ghodss/yaml
Closing this. Re-open if there is a different issue here.
Running short against an html file gives:
Would be bbetter to detect that its not even close to valid yml , probbably ...