diff options
author | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2017-10-17 17:08:53 +0900 |
---|---|---|
committer | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2017-10-17 20:10:55 +0900 |
commit | 4488ddf55034c4b00c9ce221f303f205e13c85a9 (patch) | |
tree | 0eb5e6c5344b012da223c99b362d75421bd95eb2 /integration-tests | |
parent | 49bddf8f0e7e80db1273349f90bb5599b4b1fea1 (diff) | |
download | buildstream-4488ddf55034c4b00c9ce221f303f205e13c85a9.tar.gz |
_yaml.py: Implement array composition directives
Now we support (<), (>) and (=) directives for declarative list
composition. In place of specifying a list directly to override
another list, specify a dict with sublists for prepending, appending
and overriding, respectively.
As a consequence, the composite policy which previously decided
between whether to override or append has been removed from the API.
Further, the typesafe parameter has been removed and all
compositions are expected to be typesafe (this was always being
passed as True anyway).
This also adds _yaml.node_final_assertions() which needs to be
called after the final composition of a dictionary, before
validation and before trying to parse values from the said node.
This allows the _yaml module to have a chance to make some
assertions after everything is composited
Diffstat (limited to 'integration-tests')
0 files changed, 0 insertions, 0 deletions