We have an issue currently. The following YAML piece just ignores the Excluded key.
SectionHeaderTable: Sections: [] Excluded: - Name: .foo
The code checks that the Sections key is empty and doesn't catch/check
invalid/duplicated/missed "Excluded" entries.
Also there is no way to exclude all sections except the first null section.
I suggest the simple fix that makes the next logic to work properly:
- When there is a "Sections: []", but no "Excluded" key, we omit all section headers.
- When there is a "Sections: []" and non-empty "Excluded", then the latter is validated properly and must list all sections. This can be used to create an objects which has no section headers except the null section.