* `&hoge`でアンカー
* `*hoge`でエイリアス
* `<<: *hoge`でマージ
こんな感じ。
```yaml
created_by: &created_by tadashi-aikawa
basic: &nationally
nationally: japanese
companies:
mamansoft: &mamansoft
company_id: 100
options:
- Full flex
- Remote work
members:
- id: 1
name: Ichiro
company: *mamansoft
<<: *nationally
author: *created_by
- id: 2
name: Jiro
author: *created_by
```
↓
```json
{
"companies": {
"mamansoft": {
"company_id": 100,
"options": [
"Full flex",
"Remote work"
]
}
},
"created_by": "tadashi-aikawa",
"members": [
{
"id": 1,
"company": {
"company_id": 100,
"options": [
"Full flex",
"Remote work"
]
},
"nationally": "japanese",
"name": "Ichiro",
"author": "tadashi-aikawa"
},
{
"id": 2,
"name": "Jiro",
"author": "tadashi-aikawa"
}
],
"basic": {
"nationally": "japanese"
}
}
```