You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
As an example, if my file a.yml looks like:
foo:
potato: 6
bar:
taco: 10
And my referring file looks like:
blub:
$include: './a.yml#/bar'
The output would look like:
blub:
taco: 10
The text was updated successfully, but these errors were encountered:
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:
The text was updated successfully, but these errors were encountered: