On the seventeenth day, I learned the following things about YAML.
---
student: !!seq
- mark
- name
- roll_no
...
---
sparse seq:
- how
- where
-
- Null
- sup
...
---
-
- mango
- orange
- apple
-
- car
- truck
- bus
...
!!map
---
name: Bilal Khan
roles:
age: 12
job: software engineer
...
---
name: Bilal Khan
roles: {age: 12, job: software engineer}
...
!!pairs
---
pair example: !!pairs
- job: student
- job: teacher
...
---
pair example: !!pairs [job: student, job: teacher]
...
---
names: !!set
? Bilal
? Ali
? Ahmed
...
!!omap
---
people:
- Bilal:
name: Bilal Khan
age: 25
role: software engineer
- Ali:
name: Ali Ahmed
age: 19
role: data scientist
...
likings: &fruitsChoice
like: mango
dislike: banana
person1:
name: Bilal
<<: *fruitsChoice
person2:
name: Hamza
<<: *fruitsChoice
person3:
name: Ali
<<: *fruitsChoice
person1:
name: Bilal
like: mango
dislike: banana
person1:
name: Bilal
like: mango
<<: *fruitsChoice
dislike: orange
person1:
name: Bilal
like: mango
dislike: orange
Schools:
- name: DPS
principal: Someone
students:
- roll_no: 12
name: Bilal Khan
marks: 5
Here you can get an explanation in a video. 17/60 Day of DevOps Challenge