Currently, $include pulls in entire files. Many YAML tools support the JSON Reference syntax for pulling in pieces of other files as part of the URI fragment. This would extend the syntax to be: ${file}[#${reference}] where reference is a JSON reference.
Currently,
$include
pulls in entire files. Many YAML tools support the JSON Reference syntax for pulling in pieces of other files as part of the URI fragment. This would extend the syntax to be:${file}[#${reference}]
wherereference
is a JSON reference.As an example, if my file
a.yml
looks like:And my referring file looks like:
The output would look like: