items:
house:
- bathroom:
- toothbrush
- soap
- bedroom:
- bed:
- pillow
- sheet
- closet:
- clothes:
- underwear
- socks
garden:
- treehouse:
- toys:
- nerfgun
- car
- window
- garage:
- car
- toolbox:
- hammer
- scewdriver
- pliers
- lawnmower
このドキュメントでもう1回試してみると、複合リストはありません(私はそれがどのように呼ばれているかと思います)。は有効なyamlですか?
items2:
house:
- bathroom:
- toothbrush
- soap
- bedroom:
- bed:
- pillow
- sheet
- closet:
- clothes:
- underwear
- socks
どのyaml文書が有効ですか?私はそのようなキー付きリストのリストを使用できるかどうか私はまだ思ったんだけど(ネストされたリストを?):
items:
- list1:
-itemA
-itemB
- list2:
-itemC
-itemD
それは有効なyamlですが、それは私がそれができると思ったことをしていません – jokoon