Suppose you have a YAML file with multiple consequitive objects going like
object1:
- !Object1 {
list: [
'of',
'items'
] # , may go after this
} # , may go after this
!Object2 {
...
}
The problem is, if a comma goes after the closing square bracket (or curly bracket?), then Object2 is going to be a part of object1 list. If it is absent, in our code base Object2 will be read as next object, but in the test that I will provid it crashes as well.