0

We use YAML in several frameworks to define types and structures for our deployments. I read an article about why some people don't like YAML and they stated that the parsing of YAML is very different depending on the interpreter.

Can it be said that these interpreters define their own dialects of YAML or would that not be the case?

The background is that we would like to verify and validate YAML in our templates.

  • Please add the link of the article. – 030 Nov 25 '18 at 12:06
  • @030 Done...Please read it. – Niklas Rosencrantz Nov 26 '18 at 2:04
  • What should be the programming language of the yaml validator? – 030 Nov 26 '18 at 21:07
2

There is only one YAML spec. That would lead me to say "There are no YAML dialects". There are certainly differences in implementation, perhaps due to what the article claims as the spec's ambiguity:

YAML specification is so ambiguous,

It's a matter of opinion, I believe, but there is no doubting that various language-specific parsers of the same data result in different output. So, to answer the question(s):

  1. no there are no YAML dialects (since there is one spec)
  2. yes the spec provides much leeway for implementation and thus there are differences in how it is parsed.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.