Questions tagged [yaml]

YAML is a human-readable data serialization format.

YAML is a language designed to be:

  • easily readable by humans.
  • data is portable between programming languages.
  • matches the native data structures of agile languages.
  • has a consistent model to support generic tools.
  • supports one-pass processing.
  • is expressive and extensible.
  • is easy to implement and use.

YAML is a superset of JSON and adopts an indent-sensitive syntax.

7 questions
5
votes
3 answers

What are technologies like XML, JSON, and YAML classified under?

What are technologies like XML, JSON, and YAML classified as? I already looked at Query Language Data-structured Language But neither appeared accurate... None of them are really meant for creating queries. And JSON isn't a language, so DSL…
user160274
3
votes
1 answer

Is it wrong to parse YAML `true` as a string?

Given these lines of YAML: version: 1.00 y: 1 What does this represent? According to the YAML spec (I'm not a delicate enough to read the spec like a lawyer), does this necessarily represent that a key str("version") maps to a value float(1.0), and…
SOFe
  • 658
  • 1
  • 7
  • 27
3
votes
2 answers

YAML: translating free-flowing text from XML

I'm studying YAML as a replacement for XML, but I'm experiencing difficulties when dealing with elements containing free-flowing text with embedded elements. For instance, the following XML document: This is an example text, spanning…
Eleno
  • 133
  • 3
1
vote
1 answer

How to represent a (key,value) tree structure in YAML?

I would like to represent tree structures in YAML. Each node of the tree is composed of a (key,value) pair. The key must be a string. A structure like this would be perfect: node1: child_A: child_AA: child_AB: 1.2 …
Bérenger
  • 131
  • 3
1
vote
1 answer

Best practices in storing chunks of external code

I am building a wrapper to a load-testing tool that will take configuration and scenario files as yaml and build a large, unwieldy xml file which will be destroyed when it is no longer needed. A sample yaml file would look like this: #…
Joshua Cook
  • 111
  • 4
0
votes
1 answer

Azure Pipeline variable groups vs. YAML templates

I am writing an Azure Pipeline framework in YAML which will be used on multiple projects, each with its own environment variables. I am now wondering whether the best option is to define these variables in variable groups or to use YAML…
-1
votes
2 answers

Autogeneration cloudformation. Good or bad

at my company we are using AWS Cloudformation to manage our infrastructure. The templates are written in JSON. The problem is that the templates are getting bigger by the day 5k Lines. Company policy is to write certain projects in one template…