Allow partial overriding of nested YAML content
See original GitHub issueA section of an example YAML file:
sections:
header:
text@: "Some header text"
promo:
heading@: "Heading"
The above YAML is used in the default locale (en_US). If in the en_IN locale I want to override just the promo section, using the code below would override the whole sections object:
---
$locale: en_IN
sections:
promo:
heading@: "New heading"
Obviously the desired outcome is that we only affect the promo subsection.
/cc @meizon
Issue Analytics
- State:
- Created 8 years ago
- Comments:22 (8 by maintainers)
Top Results From Across the Web
yaml anchor and alias - partial override - Stack Overflow
I have to structures that are pretty similar but differ only in a leaf node of the corresponding tree, like A1.AB.ABB in the...
Read more >GitLab CI/CD include examples
Specific YAML-defined variables and details of the production job are overridden. Content of a custom configuration file named autodevops-template.yml :.
Read more >Share Compose configurations between files and projects
To use multiple override files, or an override file with a different name, you can use the -f option to specify the list...
Read more >YAML Ain't Markup Language (YAML™) revision 1.2.2
In some cases, YAML also allows nested block collections to start ... tag or invalid content, only a partial representation may be composed....
Read more >Override Files - Configuration Language | Terraform
For example, a human-edited configuration file in the Terraform language native syntax could be partially overridden using a programmatically-generated file in ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Okay, #239 is merged! Time to resume work on this feature.
The former would work, although you’ll need to add an anchor for &smoothies.flavours before you can use *smoothies.flavours. After merging in https://github.com/grow/grow/pull/239 we’ll resume working on this to get it in ASAP.
On Thu, Jul 7, 2016 at 5:23 AM, Wills Bithrey notifications@github.com wrote:
jeremydw