-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
anchors don't survive when files are included using the Include Schema #51
Comments
That's definetely a use case I can imagine, and I've been thinking about it recently, since I saw a colleague trying to do something where this would have helped. I can think of a different kind of include plugin, which I'd rather call "Inline" maybe, where from the perspective of the parser of the main YAML the referenced document would look like it was directly in the main file itself. |
Thanks for thinking about this. For now I've hacked my config loading code so that if it sees a |
I'd like to use included yaml files to keep common configuration data. For example:
And in the yaml files used by the applications,
But (perhaps unsurprisingly) the anchor is not carried over from the included file:
Results in
I find that I use anchors quite a bit to avoid duplication, and the ability for them to exist across included file boundaries would be quite helpful.
The text was updated successfully, but these errors were encountered: