Difference between revisions of "YAML"
Jump to navigation
Jump to search
(21 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | [[wikipedia:YAML|YAML]] (YAML Ain't Markup Language) is a human-readable data serialization language. | + | [[wikipedia:YAML|YAML]] (YAML Ain't [[Markup Language]]) (2001) is a human-readable data serialization language. |
Basic YAML file example with one record: | Basic YAML file example with one record: | ||
Line 26: | Line 26: | ||
</pre> | </pre> | ||
− | == Install == | + | == Install utilities == |
− | * [[Ubuntu]]: <code>snap install yq</code> | + | * [[Ubuntu]]: <code>snap install [[yq]]</code> |
− | |||
== Activities == | == Activities == | ||
Line 36: | Line 35: | ||
# Read stackoverflow YAML related questions: https://stackoverflow.com/questions/tagged/yaml?tab=Votes | # Read stackoverflow YAML related questions: https://stackoverflow.com/questions/tagged/yaml?tab=Votes | ||
− | == | + | == Related terms == |
+ | * [[Linter]] | ||
+ | * [[Ansible playbooks examples]] | ||
+ | * [[CloudFormation]] | ||
+ | * YAML provides node <code>[[YAML anchors|anchors]]</code> (using &) and <code>[[references]]</code> (using *) | ||
+ | * <code>[[to_nice_yaml]]</code> | ||
+ | * <code>[[kubectl get nodes -o yaml]]</code> | ||
+ | * [[StrictYAML]] | ||
* [[JSON]] | * [[JSON]] | ||
− | |||
− | |||
− | |||
− | |||
+ | == See also == | ||
+ | * {{JSON}} | ||
+ | * {{YAML}} | ||
+ | * {{XML}} | ||
− | |||
[[Category:Software development]] | [[Category:Software development]] | ||
− | |||
{{CC license}} | {{CC license}} | ||
Source: https://en.wikiversity.org/wiki/DevOps/YAML | Source: https://en.wikiversity.org/wiki/DevOps/YAML |
Latest revision as of 15:11, 28 July 2024
YAML (YAML Ain't Markup Language) (2001) is a human-readable data serialization language.
Basic YAML file example with one record:
# An employee record martin_smith: name: Martin Smith job: Developer skill: Elite
Basic YAML file example with two record:
# My employee records # An employee record - martin_smith: name: Martin Smith job: Developer skill: Elite # An employee record - Thomas_Edisson: name: Tomas Eddison job: Developer skill: Basic
Install utilities[edit]
Activities[edit]
- Write a YAML file and test it with yq:
yq r your_new_yaml_file.yml
[1] - Read 10 YAML tips for people who hate YAML https://www.redhat.com/sysadmin/yaml-tips. (yamllint)
- Read https://en.wikipedia.org/wiki/Comparison_of_data-serialization_formats
- Read stackoverflow YAML related questions: https://stackoverflow.com/questions/tagged/yaml?tab=Votes
Related terms[edit]
- Linter
- Ansible playbooks examples
- CloudFormation
- YAML provides node
anchors
(using &) andreferences
(using *) to_nice_yaml
kubectl get nodes -o yaml
- StrictYAML
- JSON
See also[edit]
- JSON,
jq, jid, mlr
, JWT, BSON, Miller, Content-type:,application/json
,BadJSON
, Webhook, jsonc, ndjson,import json
, Google Custom Search JSON API,jsonpath
, JSON-LD, JSON tree, JSON-RPC - YAML, TOML,
yq
, Dhall, YAML anchors,yamllint
- XML, AJAX,
libxml2
, Expat,XMLHttpRequest (HTR), XXE
Text is available under the Creative Commons Attribution-ShareAlike License; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy.
Advertising: