%YAML 1.1 --- - name: spec-10-15 yaml: | - sun: yellow - ? earth: blue : moon: white tree: | +STR +DOC +SEQ +MAP =VAL :sun =VAL :yellow -MAP +MAP +MAP =VAL :earth =VAL :blue -MAP +MAP =VAL :moon =VAL :white -MAP -MAP -SEQ -DOC -STR - name: spec-10-15-canonical yaml: | %YAML 1.1 --- !!seq [ !!map { ? !!str "sun" : !!str "yellow" }, !!map { ? !!map { ? !!str "earth" : !!str "blue" } : !!map { ? !!str "moon" : !!str "white" } } ] tree: | +STR +DOC --- +SEQ [] +MAP {} =VAL "sun =VAL "yellow -MAP +MAP {} +MAP {} =VAL "earth =VAL "blue -MAP +MAP {} =VAL "moon =VAL "white -MAP -MAP -SEQ -DOC -STR