Add the ability to filter which properties get imported when we do an
include. We add a new YAML form for this:
include:
- name: other.yaml
property-blocklist:
- prop-to-block
or
include:
- name: other.yaml
property-allowlist:
- prop-to-allow
These lists can intermix simple file names with maps, like:
include:
- foo.yaml
- name: bar.yaml
property-allowlist:
- prop-to-allow
And you can filter from child bindings like this:
include:
- name: bar.yaml
child-binding:
property-allowlist:
- child-prop-to-allow
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
11 lines
236 B
YAML
11 lines
236 B
YAML
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
description: |
|
|
Invalid include element: invalid keys are present.
|
|
compatible: include-invalid-keys
|
|
include:
|
|
- name: include.yaml
|
|
property-allowlist: [x]
|
|
bad-key-1: 3
|
|
bad-key-2: 3
|