This patch allows empty scalars as values for mappings or sequences in shard.yml.
So this is considered a valid specification:
name: foo
version: 0.1.0
dependencies:
Previously, this caused a YAML parser error: Expected MAPPING_START but was SCALAR at line 3, column 15
There's no change to internal behaviour because empty mappings and sequences were already allowed (dependencies: {}).
So this is just a simple UX feature that avoids errors when for example all dependencies are removed but the dependencies: key isn't.
Both empty string and YAML null value (~) are accepted.
This patch allows empty scalars as values for mappings or sequences in
shard.yml
.So this is considered a valid specification:
Previously, this caused a YAML parser error:
Expected MAPPING_START but was SCALAR at line 3, column 15
There's no change to internal behaviour because empty mappings and sequences were already allowed (
dependencies: {}
). So this is just a simple UX feature that avoids errors when for example all dependencies are removed but thedependencies:
key isn't. Both empty string and YAML null value (~
) are accepted.